aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-03-07 23:13:37 +0100
committerFelix Nagel <info@felixnagel.com>2011-03-07 23:13:37 +0100
commit1e071759783ee6272cdbffc6a978013fb4aefa0e (patch)
tree32ebeff8baa8778d7f2dae36ce9495686d4e8711
parent1e623b94b0dfcf116b6b1397378f874f43f46536 (diff)
downloadjquery-ui-1e071759783ee6272cdbffc6a978013fb4aefa0e.tar.gz
jquery-ui-1e071759783ee6272cdbffc6a978013fb4aefa0e.zip
fixed: temp fix for typeahead issue in IE, see https://github.com/fnagel/jquery-ui/issues#issue/57
-rw-r--r--ui/jquery.ui.selectmenu.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 05d61c4ef..1d876a73f 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -45,6 +45,9 @@ $.widget("ui.selectmenu", {
// define safe mouseup for future toggling
this._safemouseup = true;
+
+ // FIXME temp workaround for IE
+ if ($.browser.msie) o.typeAhead = "";
// create menu button wrapper
this.newelement = $('<a class="' + this.widgetBaseClass + ' ui-widget ui-state-default ui-corner-all" id="' + this.ids[0] + '" role="button" href="#" tabindex="0" aria-haspopup="true" aria-owns="' + this.ids[1] + '"></a>')
@@ -219,9 +222,9 @@ $.widget("ui.selectmenu", {
self.close(event, true);
break;
default:
- ret = true;
-
- self._typeAhead(event.keyCode,'focus'); break;
+ ret = true;
+ self._typeAhead(event.keyCode,'focus');
+ break;
}
return ret;
});