Skip to content

Commit 327125a

Browse files
committed
Sync with Kendo UI Professional
1 parent f51631c commit 327125a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/kendo.validator.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,13 @@ export const __meta__ = {
421421
inputs = containerElement.find(this._inputSelector);
422422

423423
containerElement.find(UPLOADBUTTONWRAPPER).each(function() {
424-
let firstFileInput = $(this).find("input[type='file']").first();
424+
let uploadContainer = $($(this).parents(".k-upload")[0]),
425+
firstFileInput = $(this).find("input:hidden[type='file']").first();
426+
425427
if (firstFileInput.length) {
426-
Array.prototype.push.call(inputs, firstFileInput[0]);
428+
if (uploadContainer.length && !uploadContainer.hasClass("k-disabled")) {
429+
Array.prototype.push.call(inputs, firstFileInput[0]);
430+
}
427431
}
428432
});
429433

0 commit comments

Comments
 (0)