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 (regression) #3783

Closed
TheCodeDestroyer opened this issue Sep 19, 2024 · 5 comments · Fixed by #3788
Closed
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@TheCodeDestroyer
Copy link

NextUI Version

2.4.8

Describe the bug

When pressing clear, the autocomplete does not work anymore as in dropdown does not open while the change events work properly.
The bug can be observed on the documentation page as well.

Seems like this used to be the bug in the past and was fixed but the bug has returned:
#2146

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Press clear button when available
  2. Try to type and the dropdown does not open (it does open again if you focus out and re-focus the input, but as soon as you clear the autocomplete it stops working again)

Expected behavior

As I user I expect the clear button not to effect the functionality of the autocomplete.

Screenshots or Videos

bug.mov

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Sep 19, 2024

@abhinav700
Copy link
Contributor

I can confirm that this issue exists not only for macOS but also for ubuntu
I have begun working on it.

@abhinav700
Copy link
Contributor

@wingkwong I have referred to the PR on issue #2146 to fix this.

@wingkwong wingkwong added 🐛 Type: Bug Something isn't working 📦 Scope : Components Related to the components labels Sep 20, 2024
@chenyingkeai
Copy link

In my project, I can't even click the clear button😂

@abhinav700
Copy link
Contributor

abhinav700 commented Sep 24, 2024

@chenyingkeai that's weird.
Its possible that you are facing a different issue alll together.
I would suggest you to open a new issue with the source code, video of behaviour and system details (OS and Browser) mentioned

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.

5 participants
@TheCodeDestroyer @wingkwong @chenyingkeai @abhinav700 and others