diff options
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index e06570c0a..537d6f394 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -153,9 +153,10 @@ $.widget("ui.selectmenu", { self._refreshValue(); }) // FIXME: newelement can be null under unclear circumstances in IE8 + // TODO not sure if this is still a problem (fnagel 20.03.11) .bind("focus.selectmenu", function() { - if (this.newelement) { - this.newelement[0].focus(); + if (self.newelement) { + self.newelement[0].focus(); } }); |