-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Use classList.toggle
#23273
Use classList.toggle
#23273
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a tslint rule for this that we should get rid of.
da1e9fc
to
49d5e6d
Compare
Updated to remove tslint check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
this has a merge conflict, please resolve the conflict so we can run presubmit |
49d5e6d
to
f3622ed
Compare
@zarend rebased |
This failed some targets because either the list of classes to add/remove is an empty array or the array contains an empty string, which produces You can test this locally in the devtools by trying to add an empty list/token. To fix, you'll want to filter out empty strings and only apply add/remove if the array has length != 0 |
To make this pass internally, only overlay needs to be changed to something like:
|
With Angular dropping IE11 support in version 13, we can now use `classList.toggle` with the second `force` param. Related to angular#7374
With Angular dropping IE11 support in version 13, we can now use `classList.toggle` with the second `force` param. Related to angular#7374
With Angular dropping IE11 support in version 13, we can now use `classList.toggle` with the second `force` param. Related to angular#7374
With Angular dropping IE11 support in version 13, we can now use `classList.toggle` with the second `force` param. Related to angular#7374
With Angular dropping IE11 support in version 13, we can now use `classList.toggle` with the second `force` param. Related to angular#7374
With Angular dropping IE11 support in version 13, we can now use `classList.toggle` with the second `force` param. Related to angular#7374
f3622ed
to
4ac4665
Compare
@andrewseguin updated PR with the fix for overlay, including additional checks in the unit tests for this case. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
With Angular dropping IE11 support in version 13, we can now use
classList.toggle
with the secondforce
param. Related to #7374