Skip to content
Discussion options

You must be logged in to vote

Are you calling event.stopPropagation() somewhere else in your app? If so, try setting capture to true to catch those events first:

// old browsers
addEventListener(name, handler, true);
// modern browsers
addEventListener(name, handler, {
  passive: false,
  capture: true,
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blitzve0
Comment options

Answer selected by blitzve0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants