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
Describe the bug
I've run into this while using a link trigger to open a glightbox.
If screen size is >= 769px: first image of elements object won't show up.
If screen size is < 769px: gallery works as expected.
But when 1st item in config object does not contain the following entries...
'type': 'image',
'title': 'Another title',
'alt': 'image alt text'
...gallery works as expected, regardless of screen size (see example #2 in codepen)
Are you able to reproduce the bug in the demo site
No.
To Reproduce
Steps to reproduce the behavior:
this following codepen example uses the basic setup from the docs.
in this example, the gallery elements are defined by the 'elements' object. https://codepen.io/larsactionhero/pen/MWRXpYb
resize screen to >= 769px. first image won't show up.
resize screen to < 769px. first image will show up and gallery works as expected.
Expected behavior
It should open the 1st image right away.
The text was updated successfully, but these errors were encountered:
larsactionhero
changed the title
1st image of config won't appear when <769px but below acts normal
1st image of config object won't appear when >= 769px but acts normal if <769px
Apr 11, 2024
larsactionhero
changed the title
1st image of config object won't appear when >= 769px but acts normal if <769px
First image of config object won't appear when >= 769px but gallery acts normal if <769px
Apr 11, 2024
Describe the bug
I've run into this while using a link trigger to open a glightbox.
If screen size is >= 769px: first image of elements object won't show up.
If screen size is < 769px: gallery works as expected.
But when 1st item in config object does not contain the following entries...
...gallery works as expected, regardless of screen size (see example #2 in codepen)
Are you able to reproduce the bug in the demo site
No.
To Reproduce
Steps to reproduce the behavior:
in this example, the gallery elements are defined by the 'elements' object.
https://codepen.io/larsactionhero/pen/MWRXpYb
Expected behavior
It should open the 1st image right away.
Post the code you are using
https://codepen.io/larsactionhero/pen/MWRXpYb
Screenshots
Additional screenshot of my console error (taken from my current project where it appeared)
Desktop:
The text was updated successfully, but these errors were encountered: