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

IE11 compatibility: change classList.toggle to .add and .remove #67

Merged
merged 1 commit into from
Jul 7, 2019

Conversation

basuneko
Copy link
Contributor

@basuneko basuneko commented Jul 1, 2019

IE11 does not support the second argument to classList.toggle which causes the component to apply .no-scroll and .vue-lb-open classes when mounted and disable scrolling on the whole page.

https://caniuse.com/#feat=classlist

classList#toggle is supposed to accept a class name and a force
flag. ie11 ignores the flag which causes it to disable scrolling
when the component is first mounted.
@imcvampire imcvampire requested a review from pexea12 July 1, 2019 07:23
@pexea12 pexea12 merged commit 389d018 into pexea12:master Jul 7, 2019
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 this pull request may close these issues.

3 participants