diff options
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 811c87585..f3f70b97e 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -446,9 +446,10 @@ $.widget("ui.selectmenu", { this._selectedOptionLi().addClass(this.widgetBaseClass + '-item-focus'); // needed when selectmenu is placed at the very bottom / top of the page - window.setTimeout( function() { + clearTimeout(this.refreshTimeout); + this.refreshTimeout = window.setTimeout(function () { self._refreshPosition(); - }, 200 ); + }, 200); }, destroy: function() { |