Skip to content

Commit 49ce4fe

Browse files
committed
victorjonsson#539 eventContext might be undefined
1 parent 6422dfb commit 49ce4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/toggleDisabled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
showErrorDialogs = conf.showErrorDialogs === undefined || conf.showErrorDialogs,
3434
afterValidationCallback = function(evt, result, evtContext) {
3535
var $this = $(this);
36-
if (evtContext.indexOf('blur') > -1) {
36+
if (evtContext && evtContext.indexOf('blur') > -1) {
3737
$this.unbind('afterValidation', afterValidationCallback);
3838
} else {
3939
if (result.isValid) {

0 commit comments

Comments
 (0)