From d76aeef6de75896cfb147e3aa877a5e555273bc1 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Mon, 23 May 2011 20:38:52 +0200 Subject: [PATCH] fixed: IE typeAhead problem, thx @bergerb, https://github.com/fnagel/jquery-ui/pull/57 --- ui/jquery.ui.selectmenu.js | 11 +---------- 1 file changed, 1 insertion(+), 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 = $('') .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 { -- 2.39.5