Skip to content

Commit d7cebb3

Browse files
authored
Merge pull request #3584 from projectblacklight/backport-context-markup
[Backport 8.x] Permit markup on prev/next session context buttons
2 parents c7ad2af + 18443f6 commit d7cebb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/javascript/blacklight/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)