开发者

jQuery SelectMenu closes after click

开发者 https://www.devze.com 2023-01-02 03:11 出处:网络
I just updated to jQuery 1.4.2 & jQueryUI 1.8.2 w/the google cdn and now my jQuery selectmenu closes abruptly right after you click i开发者_Python百科t.

I just updated to jQuery 1.4.2 & jQueryUI 1.8.2 w/the google cdn and now my jQuery selectmenu closes abruptly right after you click i开发者_Python百科t.

I have a basic select and am instantiating it like so:

$('#myselectid').selectmenu({ maxHeight: 300 });

I should also point out that if I change the jQuery version to 1.3.2 and the jQueryUI version to 1.7.2 then it works...

Any ideas would be greatly appreciated, thanks,

Justin


Change:

    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;
        })

To:

    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;
        })
0

精彩评论

暂无评论...
验证码 换一张
取 消