lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.19k stars 1.76k forks source link

Hide/unhide select ? #566

Closed applibs closed 6 years ago

applibs commented 7 years ago

Hi,

why is this code for select?

$('select, object, embed').css({ 
      visibility: 'hidden'
    });

Its not needed for select! Why its there?

lokesh commented 6 years ago

In older browsers selects would be visible through and the overlay div that is placed on top of the page to give it a dim appearance. This doesn't seem to be the case in modern browsers but I haven't had a chance to fully test across the board so I'll be leaving this check in for the time being as it isn't causing much harm.