Skip to content

Commit

Permalink
fix(form): file upload fields trigger error using jquery > 3.4.0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lubber-de committed May 16, 2021
1 parent 5ef2c23 commit fdc46e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -1602,9 +1602,9 @@ $.fn.form.settings = {
selector : {
checkbox : 'input[type="checkbox"], input[type="radio"]',
clear : '.clear',
field : 'input:not(.search), textarea, select',
field : 'input:not(.search):not([type="file"]), textarea, select',
group : '.field',
input : 'input',
input : 'input:not([type="file"])',
message : '.error.message',
prompt : '.prompt.label',
radio : 'input[type="radio"]',
Expand Down

0 comments on commit fdc46e7

Please sign in to comment.