angular/components

Cdk Overlay backdrop does not respect noopanimations

已關閉

#18,645 建立於 2020年2月28日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (6,650 個分叉)batch import
GP4area: cdk/overlayhelp wanted

倉庫指標

星標
 (24,044 顆星)
PR 合併指標
 (平均合併 3天 12小時) (30 天內合併 98 個 PR)

描述

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue

Steps to reproduce:

  1. import NoopAnimationsModule
  2. Create a dialog https://stackblitz.com/edit/angular-fdgmah (based on example dialog stackblitz)

Expected Behavior

What behavior were you expecting to see?

The dark overlay appears immediately with no animation

Actual Behavior

What behavior did you actually see?

The overlay backdrop fades in over 400ms.

Environment

  • Angular: 9.1
  • CDK/Material: 9.1
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Linux

貢獻者指南