Skip to content

Commit

Permalink
Ignore disabled file input
Browse files Browse the repository at this point in the history
Disabled file input form should be ignored,
however currently submitting a form with disabled file input
will cause issue on Rails' side.
  • Loading branch information
lulalala committed Jul 4, 2015
1 parent c5ee333 commit 4f2d946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rails.js
Expand Up @@ -48,7 +48,7 @@
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',

// Form file input elements
fileInputSelector: 'input[type=file]',
fileInputSelector: 'input[type=file]:not([disabled])',

// Link onClick disable selector with possible reenable after remote submission
linkDisableSelector: 'a[data-disable-with], a[data-disable]',
Expand Down

0 comments on commit 4f2d946

Please sign in to comment.