From 1e071759783ee6272cdbffc6a978013fb4aefa0e Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Mon, 7 Mar 2011 23:13:37 +0100 Subject: [PATCH] fixed: temp fix for typeahead issue in IE, see https://github.com/fnagel/jquery-ui/issues#issue/57 --- ui/jquery.ui.selectmenu.js | 9 ++++++--- 1 file 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 = $('') @@ -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; }); -- 2.39.5