update all element ids
This commit is contained in:
1 parent
563a2b0953
commit
db44721c3d
1 file changed
+3
-5
@@ -7,7 +7,7 @@ use crate::{
|
|||||||
nodes::{DynamicNode, VNode},
|
nodes::{DynamicNode, VNode},
|
||||||
scopes::ScopeId,
|
scopes::ScopeId,
|
||||||
virtual_dom::VirtualDom,
|
virtual_dom::VirtualDom,
|
||||||
Attribute, AttributeValue, TemplateNode,
|
Attribute, TemplateNode,
|
||||||
};
|
};
|
||||||
|
|
||||||
use rustc_hash::{FxHashMap, FxHashSet};
|
use rustc_hash::{FxHashMap, FxHashSet};
|
||||||
@@ -125,10 +125,8 @@ impl<'b> VirtualDom {
|
|||||||
.mounted_element
|
.mounted_element
|
||||||
.set(left_attr.mounted_element.get());
|
.set(left_attr.mounted_element.get());
|
||||||
|
|
||||||
// We want to make sure anything listener that gets pulled is valid
|
// We want to make sure anything that gets pulled is valid
|
||||||
if let AttributeValue::Listener(_) = right_attr.value {
|
self.update_template(left_attr.mounted_element.get(), right_template);
|
||||||
self.update_template(left_attr.mounted_element.get(), right_template);
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the attributes are different (or volatile), we need to update them
|
// If the attributes are different (or volatile), we need to update them
|
||||||
if left_attr.value != right_attr.value || left_attr.volatile {
|
if left_attr.value != right_attr.value || left_attr.volatile {
|
||||||
|
|||||||
Reference in new issue
Block a user