Skip to content

Commit c7571d3

Browse files
committed
toggleDisabled now works as expected with form reset victorjonsson#535
1 parent ff3013d commit c7571d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/toggleDisabled.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
}
6363
})
6464
.on('afterValidation', afterValidationCallback)
65+
.on('reset', function() {
66+
toggleFormState($(this), 'disabled');
67+
})
6568
.on('blur', function() {
6669
$(this).valAttr('have-been-blurred', 1);
6770
});

0 commit comments

Comments
 (0)