Implement the ability to use .focus() on focusable input/select components. #1205
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
-
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 @nortonprojects for the suggestion!
Beta Was this translation helpful? Give feedback.
All reactions