πΊπΎUruguay nando.fag
On my site I have a similar problem, I have a view that when I click to display an element it opens and closes several times. Checking, notice that the click event is added many times for each element. I think it could be solved using the core/once library of the drupal core to avoid the click event being added multiple times.
Maybe something like this can fix it:
once('views_tree_collapsible', 'html', context).forEach(function (element) {