Skip to content

Commit 54e20c8

Browse files
author
Eric Fields
committed
add select tags to requiredInputSelector
1 parent 148571d commit 54e20c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',
4444

4545
// Form required input elements
46-
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
46+
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled]),select[name][required]:not([disabled])',
4747

4848
// Form file input elements
4949
fileInputSelector: 'input[type=file]',

0 commit comments

Comments
 (0)