Open doiftrue opened 3 months ago
Describe the bug
Are you able to reproduce the bug in the demo site No.
To Reproduce Steps to reproduce the behavior:
Add this code:
document.addEventListener( 'DOMContentLoaded', function(){ const lb = GLightbox( { zoomable: true, selector: '', elements: [ { type: 'image', href: 'https://picsum.photos/1200/800', title: 'My Title', description: 'Example', }, { type: 'image', href: 'https://picsum.photos/1200/800', title: 'My Title', description: 'Example', } ] } ) lb.openAt( 0 ) } );
Expected behavior Opened lightbox slide.
Post the code you are using Help me solve issues faster, if I can copy paste your code I can try to reproduce and fix the bug faster.
Screenshots
Such ternary fix the problem:
Desktop:
same problem here
@doiftrue Can you create a codepen or codesandbox with a minimized test case?
same issue
FYI: work only if set descPosition: 'right'
Describe the bug
Are you able to reproduce the bug in the demo site No.
To Reproduce Steps to reproduce the behavior:
Add this code:
Expected behavior Opened lightbox slide.
Post the code you are using Help me solve issues faster, if I can copy paste your code I can try to reproduce and fix the bug faster.
Screenshots
Such ternary fix the problem:
Desktop: