try to keep template indexes valid

This commit is contained in:
Evan Almloff committed 2023-08-31 16:14:14 -05:00
1 parent 036e1ff0f5
commit cf04256395
4 files changed
+17 -2

No files matched your search

+4
View File
@@ -214,6 +214,10 @@ impl<'b> VirtualDom {
let scope_id = left.scope.get().unwrap();
right.scope.set(Some(scope_id));
if let Some(bubble_id) = left.bubble_id.get() {
right.bubble_id.set(Some(bubble_id));
self.update_template_bubble(bubble_id, parent.unwrap().template);
}
// copy out the box for both
let old = self.scopes[scope_id.0].props.as_ref();