From: Felix Nagel Date: Sun, 20 Mar 2011 23:23:18 +0000 (+0100) Subject: fixed: problem with manual focus, thx to keizie, see: https://github.com/fnagel/jquer... X-Git-Tag: selectmenu_v1.1.0~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14bda14acd44fdfe347cd1c573ae4b079bde9cbe;p=jquery-ui.git fixed: problem with manual focus, thx to keizie, see: https://github.com/fnagel/jquery-ui/issues#issue/66 --- 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(); } });