Ensure no double el_ws creation in setup_websys_el
@@ -397,8 +397,10 @@ fn setup_websys_el<Ms>(document: &Document, el: &mut El<Ms>)
where
Ms: Clone + 'static,
{
+ if el.el_ws.is_none() {
el.el_ws = Some(websys_bridge::make_websys_el(el, document));
}
+}
/// Recursively sets up input listeners
fn setup_input_listeners<Ms>(el_vdom: &mut El<Ms>)
