From: Felix Nagel Date: Mon, 23 May 2011 18:38:52 +0000 (+0200) Subject: fixed: IE typeAhead problem, thx @bergerb, https://github.com/fnagel/jquery-ui/pull/57 X-Git-Tag: selectmenu_v1.1.0~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d76aeef6de75896cfb147e3aa877a5e555273bc1;p=jquery-ui.git fixed: IE typeAhead problem, thx @bergerb, https://github.com/fnagel/jquery-ui/pull/57 --- 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 = $('') .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 {