mirror of
https://github.com/lexmount/moli.git
synced 2026-11-23 16:02:35 +00:00
fix(events): preserve cleanup for host-dispatched child events
This commit is contained in:
@@ -40,9 +40,9 @@ fn dispatch_node_event<'s>(
|
||||
else {
|
||||
return true;
|
||||
};
|
||||
// Host dispatch must not call the author-visible dispatchEvent method.
|
||||
// An override could intercept the event, and that script-call boundary is
|
||||
// not part of native event dispatch or its selected-task completion.
|
||||
// Host dispatch must not enter JavaScript through the public dispatchEvent
|
||||
// method. Its extra execution boundary would defer listener cleanup until
|
||||
// after dispatch, and an author override could intercept a browser event.
|
||||
crate::native_bridge::element::dispatch_public_event(scope, runtime_ptr, handle, event)
|
||||
.allows_default()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user