Skip to content

Commit

Permalink
Selectmenu: Remove a call to the deprecated .focus() method
Browse files Browse the repository at this point in the history
Replaces a call to the deprecated jQuery `.focus()` method
with `.trigger("focus")`.

Closes gh-2053
  • Loading branch information
bmode committed Jul 14, 2022
1 parent ac1866f commit 1f467ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/widgets/selectmenu.js
Expand Up @@ -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: {
Expand Down

0 comments on commit 1f467ba

Please sign in to comment.