You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases where a fallback `ngClass` is not defined, the ClassDirective had no way of knowing to remove its ngClass on deactivation.
> Unlike other directives, the `removeStyles` action has no effect on ClassDirective.
By specifying an empty default fallback, we ensure that on deactivation - if no other default is specified - the ClassDirective will correctly fallback to an empty string case.
Fixes#992.
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 changes
for below example
[ngClass.lt-md] = "'test'"
What is the current behavior?
ngClass is not removing class when screen size changes.
What are the steps to reproduce?
Try to resize the screen and observe behavior.
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-beta23
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: