Skip to content

Commit 5f30abc

Browse files
authored
Merge pull request #3583 from projectblacklight/permit-markup-on-buttons
Permit markup on prev/next session context buttons
2 parents 34eccf5 + 708d4bf commit 5f30abc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/javascript/blacklight-frontend/search_context.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const SearchContext = (e) => {
2-
if (e.target.matches('[data-context-href]')) {
3-
SearchContext.handleSearchContextMethod.call(e.target, e)
2+
const contextLink = e.target.closest('[data-context-href]')
3+
if (contextLink) {
4+
SearchContext.handleSearchContextMethod.call(contextLink, e)
45
}
56
}
67

0 commit comments

Comments
 (0)