aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Hinderks <hinderks@gmail.com>2022-07-14 13:43:16 -0400
committerGitHub <noreply@github.com>2022-07-14 19:43:16 +0200
commit1f467baaacf0f9927cb73482a9f3ac0253739c4a (patch)
tree9187f7daadec935e28f67b88b97079a3e1354e5e
parentac1866f20d0c333658ec180b09bb84445c3bb086 (diff)
downloadjquery-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
-rw-r--r--ui/widgets/selectmenu.js2
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: {
n43'>43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133