fix merged changes
This commit is contained in:
1 parent
355cd9b19e
commit
b3c7ebfdba
1 file changed
+2
@@ -351,6 +351,7 @@ impl<'src> ScopeState {
|
||||
|
||||
let mut listeners = self.attributes_to_drop_before_render.borrow_mut();
|
||||
for attr in element.dynamic_attrs {
|
||||
attr.ty.for_each(|attr| {
|
||||
match attr.value {
|
||||
// We need to drop listeners before the next render because they may borrow data from the borrowed props which will be dropped
|
||||
AttributeValue::Listener(_) => {
|
||||
@@ -365,6 +366,7 @@ impl<'src> ScopeState {
|
||||
|
||||
_ => (),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let mut props = self.borrowed_props.borrow_mut();
|
||||
|
||||
Reference in new issue
Block a user