-
-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event propagation fails #867
Comments
I appreciate the work done on this so soon! Unfortunately the issue persists with custom components: main.rs
The red div does not propagate events to its parent. Was unsure if this merits a separate issue. |
I want to clarify the issue is indeed resolved in the original posted example not involving components. |
It appears the parent of a VNode is never set after it is mounted. When the event is received and checks the parent for the VNode, it is always always false which causes event bubbling to fail. |
Problem
Children with onpointerdown or onclick events block propagation of pointer events to their parent.
Steps To Reproduce
onpointermove
andonpointerdown
events to the parent that log when triggered.onpointerdown
oronclick
event to only one of the children that logs when triggered.onpointerdown
event, the parent'sonpointermove
event is not logged.onpointerdown
event, the parent'sonpointerdown
event is not logged.Expected behavior
moving the mouse across either child div should trigger the parent's
onpointermove
event log. Would be helpful in making draggable divs.Environment:
Questionnaire
Main.rs
index.html
Cargo.toml
The text was updated successfully, but these errors were encountered: