Skip to content

Commit d76aeef

Browse files
committed
fixed: IE typeAhead problem, thx @bergerb, fnagel#57
1 parent 94d614b commit d76aeef

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ $.widget("ui.selectmenu", {
4646
// define safe mouseup for future toggling
4747
this._safemouseup = true;
4848

49-
// FIXME temp workaround for IE
50-
if ($.browser.msie) o.typeAhead = "";
51-
5249
// create menu button wrapper
5350
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>')
5451
.insertAfter(this.element);
@@ -451,16 +448,10 @@ $.widget("ui.selectmenu", {
451448
}
452449
}
453450
});
454-
455-
// if we didnt find it clear the prevChar
456-
// if (!focusFound) {
457-
//self._prevChar = undefined
458-
// }
459-
460451
// set a 1 second timeout for sequenctial typeahead
461452
// keep this set even if we have no matches so it doesnt typeahead somewhere else
462453
window.setTimeout(function(el) {
463-
el._prevChar = undefined;
454+
self._prevChar = undefined;
464455
}, 1000, self);
465456

466457
} else {

0 commit comments

Comments
 (0)