Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'getElementsByTagName' of null #23

Open
GZWZC opened this issue Feb 18, 2017 · 0 comments · May be fixed by #36
Open

Cannot read property 'getElementsByTagName' of null #23

GZWZC opened this issue Feb 18, 2017 · 0 comments · May be fixed by #36

Comments

@GZWZC
Copy link

GZWZC commented Feb 18, 2017

i have two page,
page1:index
page2:detailsIndex

the photoswipe is used to the page2, when i enter the page2,
click the pic once,console.info
"Uncaught TypeError: Cannot read property 'getElementsByTagName' of null
at Object.options.getThumbBoundsFn (bundle.js:60723)
at PhotoSwipe. (bundle.js:59004)
at _shout (bundle.js:56486)
at PhotoSwipe.init (bundle.js:56944)
at PhotoSwipe. (bundle.js:55915)
at CallbackQueue.notifyAll (bundle.js:14049)
at ReactUpdatesFlushTransaction.close (bundle.js:13776)
at ReactUpdatesFlushTransaction.closeAll (bundle.js:15234)
at ReactUpdatesFlushTransaction.perform (bundle.js:15181)
at ReactUpdatesFlushTransaction.perform (bundle.js:13806)"

click the pic twice , no response
click the pic three times , the dom is clear:

before:<div class="pswp-thumbnails"><div class="pswp-thumbnail"><img /></div></div>

after:<div class="pswp-thumbnails"></div>

@element6 element6 linked a pull request Aug 25, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant