Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

ngClass with breakpoints doesn't remove class once added. #992

@mhosman

Description

@mhosman

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

Metadata

Metadata

Assignees

Labels

P1Urgent issue that should be resolved before the next re-leasebughas prA PR has been created to address this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions