2010-06-04 106 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; 
     })