Skip to content

Commit 1f467ba

Browse files
authored
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy