aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-01-18 14:14:09 -0800
committerFelix Nagel <info@felixnagel.com>2012-01-18 14:14:09 -0800
commitcf6eff7abf0541f2f4a2efbc6c90c63a5594e499 (patch)
treea43448ff03caeee4c8cfa95e6bef43a68a1d5e99
parent86dfdb8db56451f46671be91f54b55944a6d47bf (diff)
parent42391d7678c865b0f41e20d8a8e552eec71d14d8 (diff)
downloadjquery-ui-cf6eff7abf0541f2f4a2efbc6c90c63a5594e499.tar.gz
jquery-ui-cf6eff7abf0541f2f4a2efbc6c90c63a5594e499.zip
Merge pull request #200 from tschettler/selectmenu
fixed: IE8 focus issue when initializing with multiple selectmenu function calls
-rw-r--r--ui/jquery.ui.selectmenu.js5
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() {