Skip to content

Commit

Permalink
MDL-83223 core: Use capture with addEventListener to intercept events
Browse files Browse the repository at this point in the history
The issue is that Bootstrap’s dropdown component likely stops
event propagation after the first click to manage its own
dropdown behavior. This prevents your click event handler from
running on subsequent clicks.

To fix this, we can handle the event before Bootstrap’s code stops
the propagation by using capture option with addEventListener.
  • Loading branch information
meirzamoodle committed Dec 4, 2024
1 parent a798b1d commit 48e6526
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/amd/build/popover_region_controller.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48e6526

Please sign in to comment.