Skip to content

Commit 1e07175

Browse files
committed
fixed: temp fix for typeahead issue in IE, see https://github.com/fnagel/jquery-ui/issues#issue/57
1 parent 1e623b9 commit 1e07175

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ $.widget("ui.selectmenu", {
4545

4646
// define safe mouseup for future toggling
4747
this._safemouseup = true;
48+
49+
// FIXME temp workaround for IE
50+
if ($.browser.msie) o.typeAhead = "";
4851

4952
// create menu button wrapper
5053
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", {
219222
self.close(event, true);
220223
break;
221224
default:
222-
ret = true;
223-
224-
self._typeAhead(event.keyCode,'focus'); break;
225+
ret = true;
226+
self._typeAhead(event.keyCode,'focus');
227+
break;
225228
}
226229
return ret;
227230
});

0 commit comments

Comments
 (0)