mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
ignore get forms in native-modal
This commit is contained in:
1 parent
f0753de99e
commit
95f7cd5220
1 file changed
+1
@@ -9,6 +9,7 @@ export default class extends HTMLElement {
|
||||
|
||||
onSubmit = (e) => {
|
||||
if (!e.detail.success || e.detail.fetchResponse?.redirected) return
|
||||
if (e.detail.formSubmission?.formElement?.method === 'get') return
|
||||
if (this.dataset.closeAfterSubmit === 'false') return
|
||||
if (e.detail.formSubmission?.formElement?.dataset?.closeOnSubmit === 'false') return
|
||||
|
||||
|
||||
Reference in new issue
Block a user