bug: Inconsistent Modal Behaivor #2237
bfg-coding
started this conversation in
General
Replies: 1 comment 2 replies
-
I think your issue is with the HTML If you disable daisyUI, you will see the same behavior. So it's not a daisyUI issue. My suggestion would be replacing <form method="dialog" className="modal-box"> with a div, and put a You can then close the modal using JS to gain more control on everything. Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of daisyUI are you using?
v3.5.1
Describe your issue
I'm working on the Nextjs application for work. I've got 2 modals that display the same form the only different between them is one is for editing values one is for creating values. These modals use the new dialog element workflow suggested in v3 of Daisy. When I open the create modal everything works perfectly but the edit modals works perfectly until I hit the save button, the modal closes but does not run the save function as expected. I've been playing with this on and off for weeks and haven't figured out what's going on. I've stripped the project to just the required parts and still have the same bug
page component
GoalForm component ( This is large cause I've consolidated all the components into a single file for testing purposes )
Goal Row component
What browsers are you seeing the problem on?
Chrome, Firefox
Reproduction URL
No response
Beta Was this translation helpful? Give feedback.
All reactions