fix double drop of bubble id

This commit is contained in:
Evan Almloff committed 2023-09-05 21:21:54 -05:00
1 parent 9552ab6c1c
commit 02456c1068
3 files changed
+10 -3

No files matched your search

+2 -1
View File
@@ -371,7 +371,8 @@ 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.unwrap() };
let template =
unsafe { &*el_ref.template.expect("template reference should be valid") };
let node_template = template.template.get();
let target_path = el_ref.path;