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

Custom scrollbar not working when initiated as new Simplebar() #72

Closed
rajasri215 opened this issue Apr 10, 2017 · 2 comments
Closed

Custom scrollbar not working when initiated as new Simplebar() #72

rajasri215 opened this issue Apr 10, 2017 · 2 comments

Comments

@rajasri215
Copy link

Please find below the code snippet.
https://www.w3schools.com/code/tryit.asp?filename=FEHSNK518SGL

Custom scrollbar works fine when used as <div data-simplebar></div> but not when used as new SimpleBar($('#myElement')[0])

Also, trying to add scrollbar using new SimpleBar(document.getElementById('#myElement'), { wrapContent: false }); shows javascript error in the console.

Tested in Chrome Version 57.0.2987.133 (64-bit) and IE 11

@wasd171
Copy link

wasd171 commented Apr 16, 2017

Might be a dublicate of #64

@Grsmto
Copy link
Owner

Grsmto commented Apr 16, 2017

Hi, I just release a new version 2.3.0 that should solve this issue. Let me know, thanks!
https://github.com/Grsmto/simplebar/releases/tag/v2.3.0

@Grsmto Grsmto closed this as completed Apr 17, 2017
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

3 participants