Open ChoaibMouhrach opened 6 days ago
Also having issues with this. I don't think it's related to it being in a sheet because mine are in dialogs, but they forms are still 'nested' even though both the sheet component and dialog component uses portal to attach them to document.body. I'm not sure what the reason is.
I'm wondering if this is related. https://github.com/radix-ui/primitives/issues/3199
Describe the bug
I have a sheet with a form, and another sheet with its own form. Submitting the form on the second sheet triggers the form on the first sheet.
Create product
Units input
Create unit
https://github.com/user-attachments/assets/f18ed23e-f9fb-48bd-8eed-b5af3ed9c360
Affected component/components
sheet, form, button
How to reproduce
render a sheet with a form inside and inside that form render another sheet with another form inside and try submiting the second form and see that the first one triggers
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting