From 1f4fc30aa533033dc73c2a0c06e5f317e36aeb0d Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Mon, 6 May 2024 23:00:34 +0300 Subject: [PATCH] Update a call to a deprecated method Reported by a GitHub action: https://github.com/wikimedia/jquery.uls/pull/478/files#file-src-jquery-uls-core-js-L331 --- src/jquery.uls.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index 58d2346..41fcb20 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -328,7 +328,7 @@ if ( e.keyCode === 27 ) { // escape this.cancel(); - this.$element.focus(); + this.$element.trigger( 'focus' ); e.preventDefault(); e.stopPropagation(); }