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
When testing the plugin the error below appears:
vendor.min.js:61444 Uncaught TypeError: slideTriggerNode.getAttribute is not a function
at GlightboxInit.resize (vendor.min.js:61444:76)
at vendor.min.js:60832:20
at vendor.min.js:59932:15
at Image.<anonymous> (vendor.min.js:59474:9)
Are you able to reproduce the bug in the demo site
No.
To Reproduce
npm install glightbox;
Imported node_modules/glightbox/dist/js/glightbox.js and node_modules/glightbox/dist/css/glightbox.css;
Wrote a javascript file containing the following example:
// Instead of using a selector, define the gallery elements
const myGallery = GLightbox({
elements: [
{
'href': 'https://picsum.photos/1200/800',
'type': 'image',
'title': 'My Title',
'description': 'Example',
},
{
'href': 'https://picsum.photos/1200/800',
'type': 'image',
'alt': 'image text alternatives'
},
{
'href': 'https://www.youtube.com/watch?v=Ga6RYejo6Hk',
'type': 'video',
'source': 'youtube', //vimeo, youtube or local
'width': 900,
},
{
'content': '<p>This will append some html inside the slide</p>' // read more in the API section
},
{
'content': document.getElementById('inline-example') // this will append a node inside the slide
},
],
autoplayVideos: true,
});
myGallery.open();
Expected behavior
Plugin works normally.
Post the code you are using
Described above.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
When testing the plugin the error below appears:
Are you able to reproduce the bug in the demo site
No.
To Reproduce
Expected behavior
Plugin works normally.
Post the code you are using
Described above.
Screenshots
The text was updated successfully, but these errors were encountered: