#Form inside a form
12 messages · Page 1 of 1 (latest)
@tardy trout @hexed schooner is there a mantine way to address this?
it is not valid to have a form within a form in html, regardless of mantine/react
depending on where you put it, you should separate it somehow
for example you could have a modal popup, that you use withinPortal, so it's part of a separate element tree in the document
form must not contain other form elements.
https://www.w3.org/TR/xhtml1/#prohibitions
I am using the internal form in a Modal so that it could be separated in the element tree, but still the parent onSubmit is getting fired on child on submit
Yeah I did that, still no luck
is there some portalProps that I can provide which can help solve this?
@hexed schooner can you suggest how to prevent parent form submission when inner form is submitted?