2010-06-04 107 views
0

我剛剛更新到jQuery 1.4.2 & jQueryUI 1.8.2 W /谷歌CDN和現在我的jQuery selectmenu在你點擊它後突然關閉。jQuery SelectMenu關閉後點擊

我有一個基本的選擇和我實例化它像這樣:

$('#myselectid').selectmenu({ maxHeight: 300 }); 
,如果我改變了jQuery版本1.3.2和jQueryUI的版本1.7.2,然後它工作

我還要指出...

任何想法,將不勝感激,謝謝,

賈斯汀

回答

2

變化:

this.newelement 
     .bind('mousedown', function(event){ 
      self._toggle(event); 
      //make sure a click won't open/close instantly 
      if(o.style == "popup"){ 
       self._safemouseup = false; 
       setTimeout(function(){self._safemouseup = true;}, 300); 
      } 
      return false; 
     }) 
     .bind('click',function(){ 
      return false; 
     }) 

要:

this.newelement 
     .bind('click', function(event){ 
      self._toggle(event); 
      //make sure a click won't open/close instantly 
      if(o.style == "popup"){ 
       self._safemouseup = false; 
       setTimeout(function(){self._safemouseup = true;}, 300); 
      } 
      return false; 
     })