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

[Bug] Sidebar toggle is not working when browser is resized to smaller screen. #49

Open
qixuan0427 opened this issue Jan 25, 2021 · 4 comments

Comments

@qixuan0427
Copy link

Version

v2.0.1

Reproduction link

https://demos.creative-tim.com/paper-dashboard/examples/dashboard.html

Operating System

window

Device

laptop

Browser & Version

chrome version 88.0.4324.104

Steps to reproduce

  1. Open paper dashboard 2 demo at https://demos.creative-tim.com/paper-dashboard/examples/dashboard.html
  2. Resize the browser screen until it is narrow enough to collapse the side-bar.
  3. Now the sidebar button appears on the top left. However, the button does not re-open the side-bar when it is clicked.

What is expected?

The side-bar can be re-opened when the button is clicked

What is actually happening?

Nothing happens when the button is clicked.


Solution

Additional comments

Error message from console:

paper-dashboard.min.js?v=2.0.1:1 Uncaught ReferenceError: PerfectScrollbar is not defined
at paper-dashboard.min.js?v=2.0.1:1
at paper-dashboard.min.js?v=2.0.1:1

(unknown) Uncaught ReferenceError: u is not defined
at d (:1:693)
at :1:809
at :1:814

@qixuan0427
Copy link
Author

qixuan0427 commented Jan 25, 2021

I managed to solve the issue by replacing the perfect-scrollbar js code with the latest code from https://github.com/mdbootstrap/perfect-scrollbar/blob/master/dist/perfect-scrollbar.min.js

Not sure if it will bring any consequences.

@maxmahl
Copy link

maxmahl commented Mar 3, 2021

Thanks! Saved me a lot of time!

@Pistone45
Copy link

Thank you. This fixed my issue

@muriz-dev
Copy link

Thanks man, its work!

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

No branches or pull requests

4 participants