mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add file dropzone to dashboard
This commit is contained in:
1 parent
b98a874e20
commit
872fbbc875
4 files changed
+45
-12
No files matched your search
@@ -91,11 +91,13 @@ export default actionable(targetable(class extends HTMLElement {
|
||||
this.append(input)
|
||||
})
|
||||
|
||||
if (this.dataset.submitOnUpload) {
|
||||
if (this.dataset.submitOnUpload === 'true') {
|
||||
this.closest('form').querySelector('button[type="submit"]').click()
|
||||
}
|
||||
}).finally(() => {
|
||||
this.toggleLoading()
|
||||
if (this.dataset.submitOnUpload !== 'true') {
|
||||
this.toggleLoading()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if (this.dataset.submitOnUpload) {
|
||||
|
||||
Reference in new issue
Block a user