fix non-bubbling listener hydration

This commit is contained in:
Evan Almloff 2023-03-22 09:17:27 -05:00
parent 46cc07e048
commit b19e7ce455

View file

@ -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,
); );
} }
} }