Skip to content

Commit 0f51c3f

Browse files
authored
feat(form): escaped caused maximum callstack exceeded
Whenever the escape key was pressed inside an input of a form and the validation trigger was set to blur and using jquery >= 3.4.0 the "maximum callstack exceeded" error occurs. This is because jquery removed/changed the internal blur() handling. By using the native .blur() instead this error is fixed
1 parent 91654b5 commit 0f51c3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/definitions/behaviors/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ $.fn.form = function(parameters) {
416416
;
417417
if( key == keyCode.escape) {
418418
module.verbose('Escape key pressed blurring field');
419-
$field
419+
$field[0]
420420
.blur()
421421
;
422422
}

0 commit comments

Comments
 (0)