diff options
author | Felix Nagel <info@felixnagel.com> | 2011-03-21 00:23:18 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2011-03-21 00:23:18 +0100 |
commit | 14bda14acd44fdfe347cd1c573ae4b079bde9cbe (patch) | |
tree | 316090ed4e1d649aa320fca3f498c90852240ce0 | |
parent | 58b3f2ce34b3e72b44b9b4cbb88fdc3922b17c76 (diff) | |
download | jquery-ui-14bda14acd44fdfe347cd1c573ae4b079bde9cbe.tar.gz jquery-ui-14bda14acd44fdfe347cd1c573ae4b079bde9cbe.zip |
fixed: problem with manual focus, thx to keizie, see: https://github.com/fnagel/jquery-ui/issues#issue/66
-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(); } }); |