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 34eccf5 + 708d4bf commit 5f30abcCopy full SHA for 5f30abc
app/javascript/blacklight-frontend/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