Selectmenu: Remove a call to the deprecated .focus() method

Replaces a call to the deprecated jQuery `.focus()` method
with `.trigger("focus")`.

Closes gh-2053
This commit is contained in:
James Hinderks 2022-07-14 13:43:16 -04:00 committed by GitHub
parent ac1866f20d
commit 1f467baaac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {