We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7ad2af + 18443f6 commit d7cebb3Copy full SHA for d7cebb3
app/javascript/blacklight/search_context.js
@@ -1,6 +1,7 @@
1
const SearchContext = (e) => {
2
- if (e.target.matches('[data-context-href]')) {
3
- SearchContext.handleSearchContextMethod.call(e.target, e)
+ const contextLink = e.target.closest('[data-context-href]')
+ if (contextLink) {
4
+ SearchContext.handleSearchContextMethod.call(contextLink, e)
5
}
6
7
0 commit comments