Closed cmeeren closed 5 years ago
Not sure, is that possible in plain React?
I'm not sure. @mvsmal, could you clarify how AnchorEl
is supposed to be used in Fable.MaterialUI? Do we need to convert a ReactElement to Browser.Types.Element, or have I misunderstood?
Hi @cmeeren. I've released version 4.1.0 of Fable.MaterialUI. There I changed the type of MaterialProp.AnchorEl
. Please have a look at the docs:
https://mvsmal.github.io/fable-material-ui/#/api/popper
https://mvsmal.github.io/fable-material-ui/#/demos/popper
Feel free to raise an issue in fable-material-ui repository if you have any further questions.
Great, thanks!
Is it possible to create a
ReactElement
fromBrowser.Types.Element
?As an example usage, the
Ref
prop takes anBrowser.Types.Element -> unit
param, butAnchorEl
from Fable.MaterialUI takes aReactElement
. I would like to set a ref and use it inAnchorEl
, but that seems to require convertingBrowser.Types.Element
toReactElement
, and I haven't found a way to do that.