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 changes incorrectly when printing #1201

@JustACodeMonkey

Description

@JustACodeMonkey

Bug Report

On elements with ngClass, the media observers misbehave when printing. For example, if I have...

<p class="text-left" ngClass.lt-sm="text-center">Some text here</p>

...When I press Ctrl + P to print the page, then return, the text is centered (even though the screen size is still 1920px).

What is the expected behavior?

ngClass.lt-sm should be removed when printing is complete

What is the current behavior?

ngClass.lt-sm remains applied

What are the steps to reproduce?

What is the use-case or motivation for changing an existing behavior?

The screen looks incorrect when printing completes

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

I have tested in the latest Angular 8 and 9 releases with FlexLayout 8.0.0-beta.27 and 9.0.0-beta.29 respectively.

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P0Critical issue that needs to be resolved immediatelybughas prA PR has been created to address this issuein-progressprintIssues with breakpoints when printing

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions