From 42391d7678c865b0f41e20d8a8e552eec71d14d8 Mon Sep 17 00:00:00 2001 From: Travis Schettler Date: Thu, 8 Dec 2011 00:11:47 -0600 Subject: Fix for IE8 focus issue when using duplicate selectmenu functions --- ui/jquery.ui.selectmenu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index e4ed2d5c2..ed7bdd16d 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -441,9 +441,10 @@ $.widget("ui.selectmenu", { this.index( this._selectedIndex() ); // 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() { -- cgit v1.2.3