@vaadin/upload 22.0.0-rc1 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/src/vaadin-upload.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/upload",
|
|
3
|
-
"version": "22.0.0
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/button": "22.0.0
|
|
37
|
-
"@vaadin/component-base": "22.0.0
|
|
38
|
-
"@vaadin/progress-bar": "22.0.0
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "22.0.0
|
|
40
|
-
"@vaadin/vaadin-material-styles": "22.0.0
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "22.0.0
|
|
36
|
+
"@vaadin/button": "^22.0.0",
|
|
37
|
+
"@vaadin/component-base": "^22.0.0",
|
|
38
|
+
"@vaadin/progress-bar": "^22.0.0",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.0",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "^22.0.0",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@esm-bundle/chai": "^4.3.4",
|
|
45
|
-
"@vaadin/form-layout": "22.0.0
|
|
45
|
+
"@vaadin/form-layout": "^22.0.0",
|
|
46
46
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
47
47
|
"sinon": "^9.2.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b668e9b1a975227fbe34beb70d1cd5b03dce2348"
|
|
50
50
|
}
|
package/src/vaadin-upload.js
CHANGED
|
@@ -823,7 +823,7 @@ class Upload extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
823
823
|
// cancelling the following synthetic click. See also:
|
|
824
824
|
// https://github.com/Polymer/polymer/issues/5289
|
|
825
825
|
this.__resetMouseCanceller();
|
|
826
|
-
this._onAddFilesClick();
|
|
826
|
+
this._onAddFilesClick(e);
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
/** @private */
|
|
@@ -832,11 +832,12 @@ class Upload extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
832
832
|
}
|
|
833
833
|
|
|
834
834
|
/** @private */
|
|
835
|
-
_onAddFilesClick() {
|
|
835
|
+
_onAddFilesClick(e) {
|
|
836
836
|
if (this.maxFilesReached) {
|
|
837
837
|
return;
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
+
e.stopPropagation();
|
|
840
841
|
this.$.fileInput.value = '';
|
|
841
842
|
this.$.fileInput.click();
|
|
842
843
|
}
|