-
Notifications
You must be signed in to change notification settings - Fork 773
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
ngclass with breakpoints doesn't remove class once added. #967
Comments
I feel like this is a duplicate of #947. Can you pull the latest nightly branch ( |
Closing with no response. I think this has been patched in beta 23. If this isn’t the case, we can reopen this. |
Still not working with ^7.0.0-beta.23 |
It's not working in 7.0.0-beta.23 for me, either. With the code below, the class |
idk why this was closed -- this still does NOT work. |
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. |
Bug Report
What is the expected behavior?
When
ngClass
is used with breakpoint then it should add specified class for that breakpoint and remove once breakpoint changesfor below example
[ngClass.xs] = "'test'"
it should add
test
class only for xs breakpoint . If breackpoint changes then it should remove that class.What is the current behavior?
ngClass is not removing class when screen size changes.
What are the steps to reproduce?
Have a look on below stackblitz.
https://stackblitz.com/edit/angular-jau3sq
Try to resize the screen and observe behavior. You will notice
test
class is not getting removed when you go from xs to larger size.What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7+
flex-layout 7.0.0-beta22
Is there anything else we should know?
It was working fine till 7.0.0-beta.19
The text was updated successfully, but these errors were encountered: