monkey-front-components 0.0.390 → 0.0.393
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/esm2020/lib/components/dynamic/file-upload/file-upload.component.mjs +4 -3
- package/fesm2015/monkey-front-components.mjs +6 -5
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +3 -2
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/monkey-front-components-0.0.393.tgz +0 -0
- package/package.json +5 -5
- package/monkey-front-components-0.0.390.tgz +0 -0
|
@@ -707,7 +707,8 @@ class MECXDynamicFileUploadComponent {
|
|
|
707
707
|
// eslint-disable-next-line object-curly-newline
|
|
708
708
|
this._formErrors = {};
|
|
709
709
|
this._function = (file, callback) => {
|
|
710
|
-
|
|
710
|
+
const { _form } = this;
|
|
711
|
+
if (_form?.disabled)
|
|
711
712
|
return;
|
|
712
713
|
if (!this._field?.functions?.onHandleUpload) {
|
|
713
714
|
console.error('onHandleUpload not declared');
|
|
@@ -718,7 +719,7 @@ class MECXDynamicFileUploadComponent {
|
|
|
718
719
|
console.error('onHandleUpload not declared');
|
|
719
720
|
return;
|
|
720
721
|
}
|
|
721
|
-
this.self[func](file, type, callback);
|
|
722
|
+
this.self[func](file, type, callback, _form);
|
|
722
723
|
};
|
|
723
724
|
// not to do
|
|
724
725
|
}
|