Skip to content

Commit 1f467ba

Browse files
authoredJul 14, 2022
Selectmenu: Remove a call to the deprecated .focus() method
Replaces a call to the deprecated jQuery `.focus()` method with `.trigger("focus")`. Closes gh-2053
1 parent ac1866f commit 1f467ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎ui/widgets/selectmenu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
417417
// Support: IE
418418
// Setting the text selection kills the button focus in IE, but
419419
// restoring the focus doesn't kill the selection.
420-
this.button.focus();
420+
this.button.trigger( "focus" );
421421
},
422422

423423
_documentClick: {

0 commit comments

Comments
 (0)
Please sign in to comment.