From 1f467baaacf0f9927cb73482a9f3ac0253739c4a Mon Sep 17 00:00:00 2001 From: James Hinderks Date: Thu, 14 Jul 2022 13:43:16 -0400 Subject: [PATCH] Selectmenu: Remove a call to the deprecated .focus() method Replaces a call to the deprecated jQuery `.focus()` method with `.trigger("focus")`. Closes gh-2053 --- ui/widgets/selectmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/selectmenu.js b/ui/widgets/selectmenu.js index cefeddcac..cf48261d0 100644 --- a/ui/widgets/selectmenu.js +++ b/ui/widgets/selectmenu.js @@ -417,7 +417,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { // Support: IE // Setting the text selection kills the button focus in IE, but // restoring the focus doesn't kill the selection. - this.button.focus(); + this.button.trigger( "focus" ); }, _documentClick: {