diff options
author | James Hinderks <hinderks@gmail.com> | 2022-07-14 13:43:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 19:43:16 +0200 |
commit | 1f467baaacf0f9927cb73482a9f3ac0253739c4a (patch) | |
tree | 9187f7daadec935e28f67b88b97079a3e1354e5e /ui/widgets | |
parent | ac1866f20d0c333658ec180b09bb84445c3bb086 (diff) | |
download | jquery-ui-1f467baaacf0f9927cb73482a9f3ac0253739c4a.tar.gz jquery-ui-1f467baaacf0f9927cb73482a9f3ac0253739c4a.zip |
Selectmenu: Remove a call to the deprecated .focus() method
Replaces a call to the deprecated jQuery `.focus()` method
with `.trigger("focus")`.
Closes gh-2053
Diffstat (limited to 'ui/widgets')
-rw-r--r-- | ui/widgets/selectmenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/widgets/selectmenu.js b/ui/widgets/selectmenu.js index cefeddcac..cf48261d0 100644 --- a/ui/widgets/selectmenu.js +++ b/ui/widgets/selectmenu.js @@ -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: { |