Skip to content

Commit cf6eff7

Browse files
committed
Merge pull request fnagel#200 from tschettler/selectmenu
fixed: IE8 focus issue when initializing with multiple selectmenu function calls
2 parents 86dfdb8 + 42391d7 commit cf6eff7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,10 @@ $.widget("ui.selectmenu", {
446446
this._selectedOptionLi().addClass(this.widgetBaseClass + '-item-focus');
447447

448448
// needed when selectmenu is placed at the very bottom / top of the page
449-
window.setTimeout( function() {
449+
clearTimeout(this.refreshTimeout);
450+
this.refreshTimeout = window.setTimeout(function () {
450451
self._refreshPosition();
451-
}, 200 );
452+
}, 200);
452453
},
453454

454455
destroy: function() {

0 commit comments

Comments
 (0)