- Merge request !63Issue #3547324 by jesmaster, mably: Remove filter doesn't work with additional html tags in remove link β (Merged) created by mably
If you modify the template so the remove-link has additional html tags inside of it, the javascript crashes when clicking the link.
Example:
<a href="/" class="remove-filter" data-remove-selector="field_test:388" aria-label="Clear Test Filter">
<span>Test Filter</span>
</a>
Results in "views-filters-summary.js?t2r0b0:206 Uncaught TypeError: Cannot read properties of null (reading 'indexOf') at ViewsFiltersSummaryHandler.onRemoveClick"
This is due to line 205 in views-filters-summary.js when it gets the removeSelector element. The problem is it's using the event.target instead of event.currentTarget.
Attached is a patch that fixes the issue.
Active
3.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.