Collapsible javascript event attach multiple times

Created on 24 February 2023, about 2 years ago

Problem/Motivation

When I use collasible option on taxonomy tree in views with anonymous user, every things works fine. But when i use a login user, click event is attached 4 times to an element, 6 times with an administrator user, even if the context is used.

$('.views_tree_link a', context).on('click', function (e)

Proposed resolution

For my own usage, I added a once
$('.views_tree_link a', context).once().on('click', function (e)
but according to this ticket https://www.drupal.org/project/views_tree/issues/3314952 β†’ , it is not the best way to resolve this issue.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024