-
-
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] - Can't close modal when the autocomplete popover is open #3483
Comments
|
Sorry for that, I copied and pasted the wrong link. I updated the link to the correct sandbox (https://codesandbox.io/p/devbox/determined-violet-smpxr5?file=/package.json:15,32) |
Thanks for the sandbox. To supplement a bit. Currently when an autocomplete is open, clicking anywhere outside it will just close it. I think we may add an extra logic to check if the click is a close button and close the corresponding component. However, this may be a complex implementation since we need to figure out which corresponding overlay we need to close and |
@lmalvasia @wingkwong I think closing the modal on click outside can be problematic in scenarios of |
@abhinandan-verma i think he means only clicking the close button. In this case, it closes the model intentionally. |
NextUI Version
2.4.2
Describe the bug
When we have an autocomplete component inside a modal, and we try to close the modal when the popover is open, we have to click twice on the close button to close it. This is because the first click is closing the popover and the second click is closing the modal. However, as you can see in the
codesandbox
, the button to close a modal has the click animation when we do the first click.Your Example Website or App
https://codesandbox.io/p/devbox/determined-violet-smpxr5
Steps to Reproduce the Bug or Issue
Expected behavior
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: