-
-
Notifications
You must be signed in to change notification settings - Fork 264
[select] block opening the popup when provided readOnly
#2717
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
Conversation
commit: |
Bundle size report
|
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
||
| keyboardActiveRef.current = true; | ||
|
|
||
| if (event.key === 'ArrowDown') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this code block actually exist - is there a test covering it? useListNavigation should handle the logic already
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. It's clear now that the logic in onKeyDown is redundant since it's covered by useListNavigation.
I have one follow-up question, though. Am I correct in thinking that the keyboardActiveRef is still necessary to track keyboard activity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah; it should just be the if (...) block that's redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it here. Thank you for your feedback!
Fixes #2715