@uppy/form
Advanced tools
Comparing version 3.0.3 to 3.1.0
# @uppy/form | ||
## 3.1.0 | ||
Released: 2024-02-19 | ||
Included in: Uppy v3.22.0 | ||
- @uppy/form: use requestsubmit (merlijn vos / #4852) | ||
## 3.0.1 | ||
@@ -4,0 +11,0 @@ |
@@ -6,3 +6,3 @@ import BasePlugin from '@uppy/core/lib/BasePlugin.js'; | ||
const packageJson = { | ||
"version": "3.0.3" | ||
"version": "3.1.0" | ||
}; | ||
@@ -13,4 +13,8 @@ /** | ||
export default class Form extends BasePlugin { | ||
// TODO: make this private (or at least, mark it as readonly) | ||
constructor(uppy, opts) { | ||
super(uppy, opts); | ||
/** @type {HTMLFormElement} */ | ||
this.form = void 0; | ||
this.type = 'acquirer'; | ||
@@ -51,3 +55,3 @@ this.id = this.opts.id || 'Form'; | ||
if (this.opts.submitOnSuccess) { | ||
this.form.submit(); | ||
this.form.requestSubmit(); | ||
} | ||
@@ -75,3 +79,2 @@ } | ||
}); | ||
return Promise.reject(err); | ||
@@ -78,0 +81,0 @@ }).catch(err => { |
{ | ||
"name": "@uppy/form", | ||
"description": "Connect Uppy to an existing HTML <form>.", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"license": "MIT", | ||
@@ -24,8 +24,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^5.5.2", | ||
"@uppy/utils": "^5.7.1", | ||
"get-form-data": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.6.0" | ||
"@uppy/core": "^3.9.0" | ||
} | ||
} |
@@ -15,2 +15,5 @@ import BasePlugin from '@uppy/core/lib/BasePlugin.js' | ||
/** @type {HTMLFormElement} */ | ||
form // TODO: make this private (or at least, mark it as readonly) | ||
constructor (uppy, opts) { | ||
@@ -54,3 +57,3 @@ super(uppy, opts) | ||
if (this.opts.submitOnSuccess) { | ||
this.form.submit() | ||
this.form.requestSubmit() | ||
} | ||
@@ -57,0 +60,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23802
264
Updated@uppy/utils@^5.7.1