Repository navigation
Implement the ability to use .focus() on focusable input/select components. #1205
Kiley (kiley-mitti)
started this conversation in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The Astro docs (and code) have a setFocus() method for several components, including rux-select and rux-input.
While this does appear to work, still, we may be able to take advantage of the shadowRoot's delegatesFocus option to allow users to use the native .focus() method and achieve the same thing.
If possible, this would resolve a small papercut in using components, where developers need to know about the .setFocus() method and use it rather than the more common .focus() method.
Thanks to Jacob Norton (@nortonprojects) for the suggestion!
All reactions