Disabled options at the end/beginning of list are accidentally hidden from ArrowDown/ArrowUp events #1284
Unanswered
calthomson
asked this question in
Help
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.
-
A minor-ish bug, but something that I personally will need to find a workaround for, so I thought I'd mention it here!
When a
Combobox.Option
is disabled, it is no longer selectable. If the disabledCombobox.Option
is at the top or bottom of theCombobox.Options
list, it becomes unreachable/invisible when using only ArrowDown/ArrowUp because we cannot ArrowDown/ArrowUp to scroll down/up to see it, since ArrowDown/ArrowUp only controls selection, and the element can't be selected. It can be seen if you explicitly scroll.To recreate:
disabled={true}
Expected: Even though the disabled input option is not selectable, I still expect to be able to "page down" through the list via ArrowDown events.
Actual: I cannot page down past the second-to-last input option (the last non-disabled input option), making it seems as if that is the end of the list. I can still explicitly scroll down.
This also occurs when the disabled input option is at the top of the list. If you scroll down out of view of that option, then try to go back up to see it again, it will be impossible to view again since it can't be selected.
Beta Was this translation helpful? Give feedback.
All reactions