Flex-layout: ngClass with breakpoints doesn't remove class once added.

Created on 14 Jan 2019  路  3Comments  路  Source: angular/flex-layout

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

P1 bug has pr

Most helpful comment

This will be fixed by #995. Thanks for catching this!

All 3 comments

Workaround in the meantime is to add ngClass="" to any element without it.

This will be fixed by #995. Thanks for catching this!

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PierreDuc picture PierreDuc  路  5Comments

nueko picture nueko  路  5Comments

intellix picture intellix  路  4Comments

ciukstar picture ciukstar  路  4Comments

Splaktar picture Splaktar  路  4Comments