Hi Guys!
I ran into a strange issue when I wanted to use directly the overly mode's link eg.: http://example.com/gallery/1#&gid=1&pid=1
If the gallery has 4 items it only loads the first and the last one correctly the other ones wrong see the error below:
drupal.js?v=8.6.2:13 Uncaught TypeError: Cannot read property 'firstChild' of undefined
at Object.getChildByClass (photoswipe.min.js?pi2m72:4)
at a.init (photoswipe.min.js?pi2m72:4)
at Object.openPhotoSwipe (photoswipe.jquery.js?pi2m72:124)
at Object.attach (photoswipe.jquery.js?pi2m72:50)
at drupal.js?v=8.6.2:25
at Array.forEach (<anonymous>)
at Object.Drupal.attachBehaviors (drupal.js?v=8.6.2:22)
at HTMLDivElement.<anonymous> (ajax.js?v=8.6.2:556)
at Function.each (jquery.min.js?v=3.2.1:2)
at r.fn.init.each (jquery.min.js?v=3.2.1:2)
drupal.js?v=8.6.2:13 Uncaught TypeError: Cannot read property 'left' of undefined
at Object.options.getThumbBoundsFn (photoswipe.jquery.js?pi2m72:119)
at a.<anonymous> (photoswipe.min.js?pi2m72:4)
at Da (photoswipe.min.js?pi2m72:4)
at a.init (photoswipe.min.js?pi2m72:4)
at Object.openPhotoSwipe (photoswipe.jquery.js?pi2m72:124)
at Object.attach (photoswipe.jquery.js?pi2m72:50)
at drupal.js?v=8.6.2:25
at Array.forEach (<anonymous>)
at Object.Drupal.attachBehaviors (drupal.js?v=8.6.2:22)
at HTMLScriptElement.<anonymous> (ajax.js?v=8.6.2:556)
The Photoposwipe is being used by its fieldformatter (there is not any other tricks).
I'm not too experienced with Photopswipe so not pretty sure about that how could I fix it just wanted to let you know regarding this problem.
Hope that helps!
Cheers,
Balint
Comments
Comment #2
anybodyI guess this might be a duplicate of #3021740: Play nice with Blazy, Slick please reopen if it still persists with latest 8.x-2.x-dev