mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
fix non-bubbling listener hydration
This commit is contained in:
parent
46cc07e048
commit
b19e7ce455
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue