scottdarby / Stylish-Select

*No longer maintained* A cross-browser, accessible alternative to the standard form select element which can be fully customised with CSS
122 stars 50 forks source link

Box does not close when clicking outside of the body element #12

Closed gregopet closed 14 years ago

gregopet commented 14 years ago

A page I am working on somehow got its body element narrowed by the designer. Clicking outside the main page content thus does not close the select box.

A fix would be to change the lines:
//hide list on blur $('body').click(function(){

to

        //hide list on blur
        $(document).click(function(){
scottdarby commented 14 years ago

source has been updated with this fix