Skip to content

How to focus a textarea and select all text #6529

Answered by snowystinger
spassvogel asked this question in Q&A
Discussion options

You must be logged in to vote

Seems to work https://codesandbox.io/p/sandbox/agitated-https-47f9rn?file=%2Fsrc%2FApp.js%3A7%2C20
Can you explain more?

If you were trying to set the ref via the context, then you need to merge it, see #6416

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@spassvogel
Comment options

@snowystinger
Comment options

Answer selected by spassvogel
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