Skip to content

Commit

Permalink
Don't let turbo handle search_context tracking form when meta + click
Browse files Browse the repository at this point in the history
Otherwise turbo ignores the meta and puts the response in the same window.
  • Loading branch information
jcoyne committed Feb 15, 2024
1 parent 9756184 commit 3064bda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/blacklight/search_context.js
Expand Up @@ -39,6 +39,7 @@ Blacklight.handleSearchContextMethod = function(event) {

// check for meta keys.. if set, we should open in a new tab
if(event.metaKey || event.ctrlKey) {
form.dataset.turbo = "false";
target = '_blank';
}

Expand Down

0 comments on commit 3064bda

Please sign in to comment.