Core: change focus() to trigger("focus") (#2243)

Change focus() to trigger("focus") so that jQuery Migrate 3.x doesn't flag it as deprecated.
This commit is contained in:
Stephen Scott
2018-12-13 19:46:59 +00:00
committed by Brahim Arkni
parent d1c73fe289
commit a9c20ec280

View File

@@ -602,7 +602,7 @@ $.extend( $.validator, {
try {
$( this.findLastActive() || this.errorList.length && this.errorList[ 0 ].element || [] )
.filter( ":visible" )
.focus()
.trigger( "focus" )
// Manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find
.trigger( "focusin" );