aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-05-23 20:38:52 +0200
committerFelix Nagel <info@felixnagel.com>2011-05-23 20:38:52 +0200
commitd76aeef6de75896cfb147e3aa877a5e555273bc1 (patch)
tree4a030d9a7b089c0a5f948289ea2189c203c9ac47
parent94d614bfa3619ab8e38d97e06fa9b47657d5f637 (diff)
downloadjquery-ui-d76aeef6de75896cfb147e3aa877a5e555273bc1.tar.gz
jquery-ui-d76aeef6de75896cfb147e3aa877a5e555273bc1.zip
fixed: IE typeAhead problem, thx @bergerb, https://github.com/fnagel/jquery-ui/pull/57
-rw-r--r--ui/jquery.ui.selectmenu.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index e4ebce1bc..deb7b419b 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -46,9 +46,6 @@ $.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>')
.insertAfter(this.element);
@@ -451,16 +448,10 @@ $.widget("ui.selectmenu", {
}
}
});
-
- // if we didnt find it clear the prevChar
- // if (!focusFound) {
- //self._prevChar = undefined
- // }
-
// set a 1 second timeout for sequenctial typeahead
// keep this set even if we have no matches so it doesnt typeahead somewhere else
window.setTimeout(function(el) {
- el._prevChar = undefined;
+ self._prevChar = undefined;
}, 1000, self);
} else {