ng-zorro-antd
ng-zorro-antd copied to clipboard
Change detection in drawer stops to work when returning from modal
Reproduction link
https://stackblitz.com/edit/stackblitz-starters-r33rar?file=src%2Fmain.ts
Steps to reproduce
- Open drawer
- Open modal (button in drawer will be in loading state)
- 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()