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 'classList' of null #704

Closed
katasup opened this issue Oct 26, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@katasup
Copy link
Contributor

commented Oct 26, 2017

Make sure these boxes are checked before submitting your issue -- thank you!

  • Check FAQ and Caveats
  • Search if there's already one reported in Issues
  • Prepare a JSFiddle reproducing the issue
  • Provide a page or source code where the issue can be checked

Hi! There a problem with PerfectScrollbar that when scroll is fired but not stops yet, and scrollbars destroyed, script throw an error:

Uncaught TypeError: Cannot read property 'classList' of null
    at perfect-scrollbar.esm.js:87

You can check this behaviour in fiddle, just scroll and click outside.

I use this with React, so when component is hides, i should use destroy method that throw an error.

@utatti

This comment has been minimized.

Copy link
Collaborator

commented Oct 27, 2017

Yes, I confirmed the problem. Will work on this.

@utatti utatti closed this in 72aab5a Oct 27, 2017

ahkui added a commit to ahkui/perfect-scrollbar that referenced this issue Jun 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.