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
For the web package, we could change the type of the root element to be a web_sys::Node
(instead of web_sys::Element).
This allowing to pass a web_sys::ShadowRoot instead of an element.
I'm the author of dioxus-web-component,
and currently I had to wrap content of the web component into a div.
Both Element and ShadowRoot can be converted into a Node using wasm_bindgen::JsCast
Feature Request
For the web package, we could change the type of the root element to be a
web_sys::Node
(instead of
web_sys::Element
).This allowing to pass a
web_sys::ShadowRoot
instead of an element.I'm the author of dioxus-web-component,
and currently I had to wrap content of the web component into a
div
.Both
Element
andShadowRoot
can be converted into aNode
usingwasm_bindgen::JsCast
See
ShadowRoot
,Element
Implement Suggestion
I'm going to provide the changes in a PR
The text was updated successfully, but these errors were encountered: