我刚刚更新到jQuery 1.4.2& jQueryUI 1.8.2 w / google cdn,现在我的jQuery selectmenu在你点击后突然关闭。
我有一个基本的选择,并且像这样实例化它:
$('#myselectid').selectmenu({ maxHeight: 300 });
我还应该指出,如果我将jQuery版本更改为1.3.2并将jQueryUI版本更改为1.7.2,那么它的工作原理......
非常感谢任何想法,谢谢,
贾斯汀
答案 0 :(得分: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;
})