mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
ac1866f20d
commit
1f467baaac
@ -417,7 +417,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, {
|
|||||||
// Support: IE
|
// Support: IE
|
||||||
// Setting the text selection kills the button focus in IE, but
|
// Setting the text selection kills the button focus in IE, but
|
||||||
// restoring the focus doesn't kill the selection.
|
// restoring the focus doesn't kill the selection.
|
||||||
this.button.focus();
|
this.button.trigger( "focus" );
|
||||||
},
|
},
|
||||||
|
|
||||||
_documentClick: {
|
_documentClick: {
|
||||||
|
Loading…
Reference in New Issue
Block a user