Skip to content

Commit 42391d7

Browse files
committed
Fix for IE8 focus issue when using duplicate selectmenu functions
1 parent 8a0b734 commit 42391d7

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
@@ -441,9 +441,10 @@ $.widget("ui.selectmenu", {
441441
this.index( this._selectedIndex() );
442442

443443
// needed when selectmenu is placed at the very bottom / top of the page
444-
window.setTimeout( function() {
444+
clearTimeout(this.refreshTimeout);
445+
this.refreshTimeout = window.setTimeout(function () {
445446
self._refreshPosition();
446-
}, 200 );
447+
}, 200);
447448
},
448449

449450
destroy: function() {

0 commit comments

Comments
 (0)