-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Autocomplete does not blur when selecting item #3379
Comments
That's by design. |
But how can this be then achieved? I can not pass a ref to the input. |
you may pass the ref to autocomplete component instead of passing to inputProps. The ref will be forwarded to input. <Autocomplete ref={ref}>
...
</Autocomplete> |
I tired it an this makes things even worse. With this the input does not blur neither and the popover does not even disappear. Bildschirmaufnahme.2024-07-01.um.10.23.32.movThis is the code:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NextUI Version
2.4.2
Describe the bug
Input of Autocomplete component does not blur when selecting an item from the popover. Using a ref in inputProps to blur manually throws an error when hovering over the popover.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Just test the example in the docs. There it is also not blurring the input.
Expected behavior
I would expect that the input of Autocomplete gets blurred when selecting an item from the popover.
Screenshots or Videos
No response
Operating System Version
macOs
Browser
Chrome
The text was updated successfully, but these errors were encountered: