]> source.dussan.org Git - jquery-ui.git/commitdiff
Fix for IE8 focus issue when using duplicate selectmenu functions
authorTravis Schettler <travis_schettler@hotmail.com>
Thu, 8 Dec 2011 06:11:47 +0000 (00:11 -0600)
committerTravis Schettler <travis_schettler@hotmail.com>
Thu, 8 Dec 2011 06:11:47 +0000 (00:11 -0600)
ui/jquery.ui.selectmenu.js

index e4ed2d5c2534535174a61132d0d93dacdea98162..ed7bdd16df6f66c60b692c8075cae713bf0f5b02 100644 (file)
@@ -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() {