NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.88k stars 3.94k forks source link

the nzErrorTip of <nz-form-control> notworking When [formGroup] changed #7271

Open qslcna opened 2 years ago

qslcna commented 2 years ago

Reproduction link

https://codesandbox.io/s/ng-zorro-antd-ivy-forked-59ozsr

Steps to reproduce

  1. clear <input/> value.
  2. input someting to <input/>
  3. click reset button.
  4. do step 1.

What is expected?

step 4 should show the errorTips as step 1

What is actually happening?

errorTips not showing

Environment Info
ng-zorro-antd 13.0.1
Browser chrome
qslcna commented 2 years ago

the purpose for change the formGroup is to reset FormArray. see( https://github.com/angular/angular/pull/11051)