Skip to content

Commit 14bda14

Browse files
committed
fixed: problem with manual focus, thx to keizie, see: https://github.com/fnagel/jquery-ui/issues#issue/66
1 parent 58b3f2c commit 14bda14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ $.widget("ui.selectmenu", {
153153
self._refreshValue();
154154
})
155155
// FIXME: newelement can be null under unclear circumstances in IE8
156+
// TODO not sure if this is still a problem (fnagel 20.03.11)
156157
.bind("focus.selectmenu", function() {
157-
if (this.newelement) {
158-
this.newelement[0].focus();
158+
if (self.newelement) {
159+
self.newelement[0].focus();
159160
}
160161
});
161162

0 commit comments

Comments
 (0)