]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: problem with manual focus, thx to keizie, see: https://github.com/fnagel/jquer...
authorFelix Nagel <info@felixnagel.com>
Sun, 20 Mar 2011 23:23:18 +0000 (00:23 +0100)
committerFelix Nagel <info@felixnagel.com>
Sun, 20 Mar 2011 23:23:18 +0000 (00:23 +0100)
ui/jquery.ui.selectmenu.js

index e06570c0af42e83418eab10e0f0f141a34c7629f..537d6f39408b00f6ce16683d63d8811dccfff173 100644 (file)
@@ -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();
                                }
                        });