feat: fake bubbling

This commit is contained in:
Jonathan Kelley committed 2021-11-11 22:18:16 -05:00
1 parent f2234068ba
commit 11757ddf61
4 files changed
+21 -19

No files matched your search

+1
View File
@@ -567,6 +567,7 @@ impl<'bump> DiffState<'bump> {
return;
}
self.scopes.update_reservation(new_node, root);
new.dom_id.set(Some(root));
// todo: attributes currently rely on the element on top of the stack, but in theory, we only need the id of the
+1
View File
@@ -369,6 +369,7 @@ impl ScopeArena {
let mut cur_el = Some(element);
while let Some(id) = cur_el.take() {
log::debug!("checking element {:?} for listeners", id);
if let Some(el) = nodes.get(id.0) {
let real_el = unsafe { &**el };
if let VNode::Element(real_el) = real_el {