You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Featherlight displays the image even thou "beforeOpen" is asked to return false (in order to prevent image from showing if certain condition apply)
#429
Open
2 tasks
camelico opened this issue
Oct 22, 2023
· 1 comment
What kind of issue is this? (put 'x' between the square brackets)
Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use http://stackoverflow.com/questions/ask .
Provide working code, starting from http://jsfiddle.net/JNsu6/15/.
We monitor the tag featherlight.js.
[x ] Bug report. If you’ve found a bug, you must provide a minimal example in a CodePen,
starting from http://jsfiddle.net/JNsu6/15/ .
I am trying to show an image with featherlight, but would like the lightbox not to popup if certain conditions apply, so following the documentation, and as far as I understand, "return false" on "beforeOpen" should prevent the opening of the image. I tried doing that based on documentation + research, and the "beforeOpen" is triggered, but "return false" does not prevent the lightbox from opening, which is the main idea.
What kind of issue is this? (put 'x' between the square brackets)
Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use
http://stackoverflow.com/questions/ask .
Provide working code, starting from http://jsfiddle.net/JNsu6/15/.
We monitor the tag
featherlight.js
.[x ] Bug report. If you’ve found a bug, you must provide a minimal example in a CodePen,
starting from http://jsfiddle.net/JNsu6/15/ .
Feature Request. Make sure there's no good way to do what you want first;
consider asking on http://stackoverflow.com/questions/ask first.
I am trying to show an image with featherlight, but would like the lightbox not to popup if certain conditions apply, so following the documentation, and as far as I understand, "return false" on "beforeOpen" should prevent the opening of the image. I tried doing that based on documentation + research, and the "beforeOpen" is triggered, but "return false" does not prevent the lightbox from opening, which is the main idea.
Link to JSFiddle:
https://jsfiddle.net/9fgwsnku/
Thank you.
The text was updated successfully, but these errors were encountered: