fix: keep popover open after clearing input in autocomplete#2148
fix: keep popover open after clearing input in autocomplete#2148abdulbasithqb wants to merge 2 commits into
Conversation
…tton fix: keep popover open after clearing input in autocomplete
|
|
@abdulbasithqb is attempting to deploy a commit to the NextUI Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Hey @jrgarciadev could you please review this PR ? |
|
hi guys @abdulbasithqb @jrgarciadev how are you, I hope you are all well. Do you have any predictions about whether this will be merged please? thanks in advance o/ |
|
Closing - No longer reproducible in 2.3.5. |
Closes #2146
📝 Description
⛳️ Current behavior (updates)
The current behavior of the
onClearfunction is to clear the input value and selected item, but the popover closes afterward, and there is an issue with the focus not behaving as expected.🚀 New behavior
With this PR, the
onClearfunction has been fixed by addingstate.setOpen(true);, ensuring that the popover remains open after clearing the input, and the input field regains focus correctly.💣 Is this a breaking change (Yes/No):
No
📝 Additional Information