Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visibility hidden/visble on start/end #520

Closed
ShionNoAries opened this issue Apr 26, 2016 · 2 comments
Closed

visibility hidden/visble on start/end #520

ShionNoAries opened this issue Apr 26, 2016 · 2 comments

Comments

@ShionNoAries
Copy link

ShionNoAries commented Apr 26, 2016

Got a problem on my page when lightbox disappears. Some of my invisibles elements was visible against my will.
Visibly on start, the lightbox do that :
$('select, object, embed').css({ visibility: 'hidden' });
and on end :
$('select, object, embed').css({ visibility: 'visible' });
Regardless if elements was visible before the lightbox appears.

Somethings like that can i think resolve this i think :
this.hidenedElements = $('select, object, embed').filter(function() { return !($(this).css('visibility') == 'hidden' || $(this).css('display') == 'none'); });

And use this globale variable to hide and show elements.
I start to use jquery today, so i'm not totally sure about what i wrote.

Sorry about my english and thanks for reading me.

@janzii
Copy link

janzii commented Oct 2, 2018

I have this issue also.
Selects from hidden divs pops up after lightbox.end.

As long as the element didn't have visibility set explicitly before lightbox open, this can be resolved by setting visibility to "" instead of "visible", but at least for me those elements don't really need hiding in the first place.

@lokesh
Copy link
Owner

lokesh commented Apr 22, 2019

@lokesh lokesh closed this as completed Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants