You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature request: I'm trying to integrate a crate that uses wasm_bindgen types to interact with the DOM. For this, components need to be able to pass these references to functions of this crate. However, the current NodeRef API only returns DOM elements wrapped by stdweb, which are incompatible.
I've spent a few hours now looking into ways to directly convert between stdweb::webapi::node::Node and web_sys::Element, but apparently there is none whatsoever.
Expected Results
Maybe a NodeRefBindgen type that works in the same way NodeRef works right now.
Actual Results
There's only NodeRef.
Context (Environment)
yew: v0.10.0
target: wasm32-unknown-unknown
The text was updated successfully, but these errors were encountered:
Hey there @anlumo, thanks for the issue! We have an issue tracking web-sys support here: #558. It needs some love 😛 but will get done soonish! When it is done, it will make NodeRef web-sys compatible as you are requesting.
Description
Feature request: I'm trying to integrate a crate that uses wasm_bindgen types to interact with the DOM. For this, components need to be able to pass these references to functions of this crate. However, the current NodeRef API only returns DOM elements wrapped by stdweb, which are incompatible.
I've spent a few hours now looking into ways to directly convert between
stdweb::webapi::node::Node
andweb_sys::Element
, but apparently there is none whatsoever.Expected Results
Maybe a NodeRefBindgen type that works in the same way NodeRef works right now.
Actual Results
There's only NodeRef.
Context (Environment)
The text was updated successfully, but these errors were encountered: