How to focus a textarea and select all text #6529
-
I am using a I tried adding a
but it seems that some internal react-aria mechanism is taking over control over the focus? because it only very rarely works, and only for a split second. What is the recommended way to do this in react-aria-components? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Seems to work https://codesandbox.io/p/sandbox/agitated-https-47f9rn?file=%2Fsrc%2FApp.js%3A7%2C20 If you were trying to set the ref via the context, then you need to merge it, see #6416 |
Beta Was this translation helpful? Give feedback.
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