-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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?] - Using Modal/Drawer as form hitting Enter closes the modal #4516
Comments
I couldn't access your sandbox. Please make it public. |
Man sry, it should be public now! |
I do not understand what is happening here.. |
@wingkwong Codebox worked now right? |
@J4v4Scr1pt yes. this needs further investigation as i haven't used as form in modal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NextUI Version
2.6.11
Describe the bug
Maybe I'm doing something wrong here using the Modal/Drawer as a form, but it's the most convenient way to wrap both Footer and Body. ModalContent don't accept a action prop so can't use that as the form.
The Modal has inputs that are required and it uses ServerAction for submitting.
This is how I always have used it and for some reason this has changed during the latest updates.
Your Example Website or App
https://codesandbox.io/p/devbox/frosty-bhaskara-j53crw
Steps to Reproduce the Bug or Issue
Open CodeSandbox.
Open the modal.
Click in a Input.
Hit Enter.
Expected behavior
Tbh I could be wrong here, but I would Expect it to not close because the inputs have no values and are requierd.
Screenshots or Videos
No response
Operating System Version
Window 11
Browser
Chrome
The text was updated successfully, but these errors were encountered: