Skip to content

How to stop events bubbling/propagating #2896

Answered by WorldSEnder
ch3pjw asked this question in Q&A
Discussion options

You must be logged in to vote

prevent_default does not prevent bubbling, it prevents the browser from executing the default action associated with that event. For example making a POST request when you submit a form. The method you are after is called stop_propagation and should work in yew.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ch3pjw
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