-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
sl-select is not looping sl-options on keydown #2173
Comments
For reference1, on RTCode.io, we have implemented this 'first letter focus' behavior for with
Footnotes
|
This component is designed to work like a standard shoelace/src/components/select/select.component.ts Lines 375 to 413 in 73c469f
Our upcoming combobox will follow ARIA APG as closely as possible, but this component intends to behave like a |
@claviska Unfortunately If I have:
And I have the select focused + open and type Now, this behavior is actually problematic. Try this codepen in Chrome: https://codepen.io/paramagicdev/pen/ZEgrPvv My findings were it got stuck on the first two options and kept looping through them and never made it to the 3rd option. TBH, I never even knew this was the expected behavior until today, and the behavior is clearly broken in Safari and Chrome. Its hard to tell from the video, but all I'm doing is opening the 2024-10-28.23-52-10.remuxed.mp4 |
@claviska @KonnorRogers yes, the native select works with the same behavior. I missed to document at the beginning. As this is closed now, do we have any plan to implement this in |
Depends on the browser…cycling through the same letter is a Firefox-only thing :) |
@claviska Chrome cycles too...but only when the |
Hmm. That makes a bit more sense. |
Describe the bug
sl-select component is not looping sl-options on keydown. It is focusing only the first sl-option. This behavior is implemented in w3.org https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/ .
To Reproduce
Steps to reproduce the behavior:
S
.Shoelace
option will be focused.S
. No changes.On again pressing
S
,Summer
option should have been focused.Demo
Screenshots
If applicable, add screenshots to help explain the bug.
Browser / OS
Additional information
Provide any additional information about the bug here.
The text was updated successfully, but these errors were encountered: