-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] - Autocomplete's keyboard shortcuts behave weirdly #3225
Comments
Another issues found. Describe the bug
Expected behavior
Screenshots or VideosScreen.Recording.2024-06-10.at.0.54.22.mp4 |
This is what I see. Just use tab and arrow down key. issue3225.webm |
It's weird, I see the issue on both Windows and macOS with Chrome, Brave and Safari. I wonder if you are looking the stackblitz link because in your video I see some padding on top of the page but it doesn't exist actually. |
@takuyahara i was testing on my local tho. |
@wingkwong Could you please check on stackblitz? This is where I see the issue (and on my local as well of course). https://stackblitz.com/~/github.com/takuyahara/nextui-autocomplete-issue |
@wingkwong I hope you have time to see. Let me know if something is lacking. |
@takuyahara I could see the error on my next app also but not in storybook n doc. Need to dig a bit. |
@wingkwong Just a quick note: downgrading |
Maybe the difference that the issue happens in app but doesn't in storybook is by It's by React strict mode. See #3225 (comment) |
There's lots of diff between |
Quick note: I found the issue is caused by React's strict mode. Removing - options: {}
+ options: {
+ strictMode: true,
+ } But since, as far as I know, the use of strict mode is not restricted in NextUI every component should work on both strict and non-strict mode. It seems like there's something to be destructed on unmount and digging into |
NextUI Version
0.0.0-canary-20240607005641
Describe the bug
Autocomplete's keyboard shortcuts behave weirdly as follows. They don't happen in examples on document.
But when textbox is clicked, hitting tab key focuses to next autocomplete's textbox. This is an expected behavior.
Your Example Website or App
https://stackblitz.com/~/github.com/takuyahara/nextui-autocomplete-issue
Steps to Reproduce the Bug or Issue
Expected behavior
Screenshots or Videos
Screen.Recording.2024-06-10.at.0.03.49.mp4
Operating System Version
macOS
Browser
Brave v1.66.118 (Chromium v125.0.6422.147)
The text was updated successfully, but these errors were encountered: