pass event propagation test
This commit is contained in:
1 parent
d26aa95bcd
commit
9552ab6c1c
7 files changed
+55
-30
No files matched your search
@@ -371,7 +371,7 @@ impl VirtualDom {
|
||||
// Loop through each dynamic attribute (in a depth first order) in this template before moving up to the template's parent.
|
||||
while let Some(el_ref) = parent_path {
|
||||
// safety: we maintain references of all vnodes in the element slab
|
||||
let template = unsafe { &*el_ref.template };
|
||||
let template = unsafe { &*el_ref.template.unwrap() };
|
||||
let node_template = template.template.get();
|
||||
let target_path = el_ref.path;
|
||||
|
||||
@@ -421,7 +421,7 @@ impl VirtualDom {
|
||||
// Otherwise, we just call the listener on the target element
|
||||
if let Some(el_ref) = parent_path {
|
||||
// safety: we maintain references of all vnodes in the element slab
|
||||
let template = unsafe { &*el_ref.template };
|
||||
let template = unsafe { &*el_ref.template.unwrap() };
|
||||
let node_template = template.template.get();
|
||||
let target_path = el_ref.path;
|
||||
|
||||
|
||||
Reference in new issue
Block a user