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

fix class toggling on control for IE #8495

Merged
merged 2 commits into from
Jul 17, 2019
Merged

fix class toggling on control for IE #8495

merged 2 commits into from
Jul 17, 2019

Conversation

cs09g
Copy link
Contributor

@cs09g cs09g commented Jul 17, 2019

The second argument of classList.toggle is not supported in IE.
So, the control displays as disabled in IE at default.

https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11865865/

Launch Checklist

  • briefly describe the changes in this PR

The second argument of `classList.toggle` is not supported in IE.
So, the control displays as disabled in IE at default.

https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11865865/
@cs09g
Copy link
Contributor Author

cs09g commented Jul 17, 2019

I'm going to fix the convention from the ternary operator to if~else condition.

change the ternary operator to if~else condition to pass lint.
@mourner mourner merged commit 906c289 into mapbox:master Jul 17, 2019
@mourner
Copy link
Member

mourner commented Jul 17, 2019

Thanks!

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.

2 participants