Why can't ref_container
accept &JsRefContainer<HtmlDivElement>
?
#16
Replies: 1 comment
-
Yes, currently, you need to do the conversion yourself... In the next version 0.6.1, it will be generic. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my code I want to do this:
but when I do
I get this error:
Should I keep the types for refs as
JsRefContainer<Element>
and then convertElement
to the specific HTML element I want to use? Shouldref_container
be changed to acceptHTMLSomeElement
?Beta Was this translation helpful? Give feedback.
All reactions