Skip to content

Autofocus on TextField #286

Closed Answered by gabro
mperrando asked this question in Q&A
Jul 19, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Good point, we currently do not offer a facility for auto focus for fields, but I agree it‘d make sense we would. We’ll schedule this soon. Fn the meantime you could work around this by using something like https://react-spectrum.adobe.com/react-aria/FocusScope.html, and wrapping the TextField with a <FocusScope autoFocus>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gabro
Comment options

Answer selected by mperrando
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants