implement _*ElementConfig_setFocus
plt-amy opened this issue · comments
Amélia commented
Basically the same thing as _inputElementConfig_setValue
but for calling .focus()
on the underlying element when the event fires.
Ruben Moor commented
Second this. This is my workaround, cf.
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)