Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement _*ElementConfig_setFocus #435

Open
plt-amy opened this issue May 13, 2022 · 1 comment
Open

implement _*ElementConfig_setFocus #435

plt-amy opened this issue May 13, 2022 · 1 comment
Assignees

Comments

@plt-amy
Copy link

plt-amy commented May 13, 2022

Basically the same thing as _inputElementConfig_setValue but for calling .focus() on the underlying element when the event fires.

@plt-amy plt-amy self-assigned this May 13, 2022
@rubenmoor
Copy link

Second this. This is my workaround, cf.

#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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants