Skip to content

unexpected transition trigger when create overlay #14646

@vthinkxie

Description

@vthinkxie

What is the expected behavior?

the transition should not be triggered when angular router changed

What is the current behavior?

the transition triggered when the overlay created

What are the steps to reproduce?

https://stackblitz.com/edit/ng-zorro-antd-start-uvffqm?file=src%2Fapp%2Fapp.component.ts

change the router, you can see the transition triggered, and the transition will not be triggered if comment the

this.overlay.create().attach(new ComponentPortal(AttachComponent));

line

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

@angular/core 7.1.4 & @angular/cdk 7.2.0

Is there anything else we should know?

router.navigate will not trigger the transition.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions