-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Mimic browser select on focus when navigating via Tab
#1272
Mimic browser select on focus when navigating via Tab
#1272
Conversation
When calling focusIn if the next node is selectable select all the text.
@smacpherson64 is attempting to deploy a commit to the Tailwind Labs Team on Vercel. A member of the Team first needs to authorize it. |
This pull request is being automatically deployed with Vercel (learn more). headlessui-react – ./packages/playground-react🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/BB33L4W7sN2s9GHncF2UwG3uTh1n headlessui-vue – ./packages/playground-vue🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/3hvHMiJcEj9FB3CfZKgdJ3sA4A1S |
Tab
Hey! Thank you for your PR! |
Glad to be part! Thank you! |
When using a
Dialog
, if a user tabs into an input or textarea element, the default browser behavior of selecting the text is not occurring. Instead the cursor is sent to the end of the input.This PR resolves this by selecting the text if the element is able to select the text.
resolves #1271