Skip to content
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 does not work when the clear button is hit after select an item #2872

Closed
Marcosfsalazar opened this issue Apr 25, 2024 · 1 comment · Fixed by #2854
Closed
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@Marcosfsalazar
Copy link

NextUI Version

2.3.6

Describe the bug

When the user clicks on the autocomplete field, select an item, clicks in the field again and then hits the clear button, the field stops working.

Your Example Website or App

https://nextui.org/docs/components/autocomplete

Steps to Reproduce the Bug or Issue

1.Go to an autocomplete field with an item already selected.
2.Click on the input field.
3.Click on the field again as if you were going to type something.
4.Click on the clear 'X' button.
5.Without clicking outside the input, try to type something.
6.Notice that the popover does not appear.

Expected behavior

As a user, I expect that when I clear the field and then try to search for something, the list of options should appear. However, currently, when I clear the field and attempt to type something, nothing happens.

Screenshots or Videos

issue_autocomplete_2.3.6.mp4

Operating System Version

Ubuntu 22.04

Browser

Chrome

@Marcosfsalazar Marcosfsalazar changed the title [BUG] - Autocomplete does not work when the clear button is hit after select a item [BUG] - Autocomplete does not work when the clear button is hit after select an item Apr 25, 2024
@wingkwong wingkwong self-assigned this Apr 25, 2024
@wingkwong wingkwong added 🐛 Type: Bug Something isn't working 📦 Scope : Components Related to the components labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants