gfranko / jquery.selectBoxIt.js

A jQuery Select Box Plugin for Mobile, Tablet, and Desktop
http://www.selectboxit.com
MIT License
852 stars 301 forks source link

Crashes on some devices if contained in div = display:none #338

Open mlinnetz opened 9 years ago

mlinnetz commented 9 years ago

Hello,

We found that if the select box is inside a div with style="display:none;", it crashes the browser on certain devices. (For example, Safari on iPad mini OS 8)

We're on version 3.8.1.

We ended up setting visibility:hidden on initial page load, then using Jquery we set display:none; and visibility:visible after selectboxit (after the DOM finished loading).

I hope this is not a duplicate post. There were other posts which alluded to issues with the element being inside a div with display:none, but I did not see a thread describing a correlation between display:none and the browser crashing.

Thought I'd post this in case it helps someone else. Cheers.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.