- Issue created by @dejan0
element.find('[name]') selects all elements with a name attribute, including divs, form elements, etc. However, this.name only works for form elements, returning undefined for non-form elements like divs
So, we're using drupal/better_exposed_filters along with a Links widget, and 'Allow multiple selections' is disabled. The issue was that we couldn't deselect an already selected filter
this.getAttribute('name') should work for reading the name attribute from div elements as well
Active
1.0
Code