-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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] - Unexpected behaviour on autocompleteItem select #3449
Comments
Hello @wingkwong can you please assing this issue to me |
@wingkwong I have tried to discover issue well but nothing is happening as you mentioned here. Uploading Untitled video - Made with Clipchamp.mp4… |
@navneetthakor I just tested on the given sandbox again and i can reproduce the issue. you need to do it in mobile viewport. Also the video you provided is now shown. please double check. |
I am also experiencing this issue but only on mobile viewport |
Happens on modal as well, for example when you click on close button or outside modal |
I am also facing this issue. Any fix for this? |
@navneetthakor any update? |
I have switched to react-select package not to confuse mobile users (recommend this approach, less effort than trying to fix that), tried preventing mouse touch but the bug was still there. |
Running into a similar issue. If I have multiple Autocompletes, the first one works as expected but then with the second one, the search value (the value of the input in the autocomplete) gets reset automatically after 2 characters are typed. I only see this issue on Chrome iOS. |
Seems like this issue occurs due to the Issue Summary:
The ReactSpectrum team has already put up the fix for this in usePress: Fix for onClick triggered on wrong target. Note:
Some of the references:
|
NextUI Version
2.4.2
Describe the bug
On mobile, when you tap on AutocompleteItem and there is other autocomplete under it, it makes element under focused.
Your Example Website or App
CodeSandbox
Steps to Reproduce the Bug or Issue
Expected behavior
As a user, i expected to close list of autoCompleteItems and element under might be not focused
Screenshots or Videos
Display how it looks
Vite.App.-.Google.Chrome.-.11.July.2024.mp4
Operating System Version
Windows
Browser
Chrome
The text was updated successfully, but these errors were encountered: