- Issue created by @dejan0
- Status changed to Needs review
23 days ago 12:19pm 19 September 2025 - Merge request !27Issue #3514479 by dejan0, vitaliyb98: name attribute on <div> elements is not... → (Open) created by Unnamed author
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