Skip to content

Commit fdc46e7

Browse files
authored
fix(form): file upload fields trigger error using jquery > 3.4.0
When a form contains a file upload field it is also bound to several form events which are not supposed to happen on those and do not work because flie upload fields are limited in access. That said, when using jQuery > 3.4.0, it triggers a Maximum callstack exceeded instead
1 parent 5ef2c23 commit fdc46e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitions/behaviors/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,9 +1602,9 @@ $.fn.form.settings = {
16021602
selector : {
16031603
checkbox : 'input[type="checkbox"], input[type="radio"]',
16041604
clear : '.clear',
1605-
field : 'input:not(.search), textarea, select',
1605+
field : 'input:not(.search):not([type="file"]), textarea, select',
16061606
group : '.field',
1607-
input : 'input',
1607+
input : 'input:not([type="file"])',
16081608
message : '.error.message',
16091609
prompt : '.prompt.label',
16101610
radio : 'input[type="radio"]',

0 commit comments

Comments
 (0)