Open plt-amy opened 2 years ago
Second this. This is my workaround, cf.
https://github.com/reflex-frp/reflex-dom/issues/424
import GHCJS.DOM.HTMLElement (focus)
-- post build auto focus: the post build event happens before the element
-- is mounted. postmount event waits for pull request to be accepted
-- https://github.com/reflex-frp/reflex-dom-semui/issues/18
ePb <- delay 0.1 =<< getPostBuild
performEvent_ $ ePb $> focus (_inputElement_raw kbInput)
Basically the same thing as
_inputElementConfig_setValue
but for calling.focus()
on the underlying element when the event fires.