You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nextui-org/select@2.2.5 and @nextui-org/modal@2.0.33
Describe the bug
If you use a Select inside a Modal component, selecting an item causes the modal to close automatically. I tried using e.stopPropagation() on several events of the Select component, such as onSelect or onChange, but it didn't work. The only way to prevent this behavior is by removing the following attribute from the Modal component
NextUI Version
@nextui-org/select@2.2.5 and @nextui-org/modal@2.0.33
Describe the bug
If you use a Select inside a Modal component, selecting an item causes the modal to close automatically. I tried using e.stopPropagation() on several events of the Select component, such as onSelect or onChange, but it didn't work. The only way to prevent this behavior is by removing the following attribute from the Modal component
onOpenChange={(isOpen) => (isOpen ? onOpen() : onClose())}
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
The component which calls the modal is the following
Expected behavior
Modal automatically closes on item selection
Screenshots or Videos
No response
Operating System Version
Windows 11
Browser
Chrome
The text was updated successfully, but these errors were encountered: