minhtranite / react-photoswipe

PhotoSwipe, PhotoSwipeGallery component for ReactJS base on PhotoSwipe.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't take getElementsByTagName() of null. Wtf?

pravosleva opened this issue · comments

commented

Sometimes i see this error in this page http://selection4test.ru/projects/projects-react-gallery/build/index.html.
TypeError: t is undefined
Why it is possible?
How can I resolve it?

We are also still getting this. It seams there is a PR that fixes it. Can you please merge it and release a new version?

Thx

you could disable history. it seems to solve the problem for me

options={{
    history : false
}}

or use galleryUID

options={{
    galleryUID: 1234
}}