Merge pull request #903 from Demonthos/fix-non-bubbling-listener-hydration
Fix non-bubbling listener hydration
This commit is contained in:
1 file changed
+3
-2
@@ -128,10 +128,11 @@ impl WebsysDom {
|
|||||||
mounted_id = Some(id);
|
mounted_id = Some(id);
|
||||||
let name = attribute.name;
|
let name = attribute.name;
|
||||||
if let AttributeValue::Listener(_) = value {
|
if let AttributeValue::Listener(_) = value {
|
||||||
|
let event_name = &name[2..];
|
||||||
self.interpreter.new_event_listener(
|
self.interpreter.new_event_listener(
|
||||||
&name[2..],
|
event_name,
|
||||||
id.0 as u32,
|
id.0 as u32,
|
||||||
event_bubbles(name) as u8,
|
event_bubbles(event_name) as u8,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user