ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

Change detection in drawer stops to work when returning from modal

Open lasas opened this issue 7 months ago • 1 comments

Reproduction link

https://stackblitz.com/edit/stackblitz-starters-r33rar?file=src%2Fmain.ts

Steps to reproduce

  1. Open drawer
  2. Open modal (button in drawer will be in loading state)
  3. Close modal

What is expected?

After closing modal, button in drawer should be in normal state (not loading).

What is actually happening?

After closing modal, button in drawer is still in loading state.

Environment Info
ng-zorro-antd 18.0.1
Browser Firefox, Google Chrome

It's regression after upgrade to v18. Not sure if it's CDK or ng-zorro-antd.

It's possible to workaround it using ChangeDetectorRef.markForCheck()

lasas avatar Jul 09 '24 12:07 lasas