Skip to content

Commit

Permalink
Add event listener to prevent focus propagation on MultiSelect dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectly-preserved-pie committed Nov 19, 2024
1 parent 9e2db3d commit 0707a21
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/javascript/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
document.addEventListener('DOMContentLoaded', function() {
const multiSelectDropdown = document.querySelector('.mantine-MultiSelect-dropdown');
if (multiSelectDropdown) {
multiSelectDropdown.addEventListener('focus', function(event) {
event.preventDefault();
event.stopPropagation();
});
}
});

0 comments on commit 0707a21

Please sign in to comment.