Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nz-select was marked as touched when initial state of FormControl is disabled #3059

Closed
agmoura opened this issue Mar 11, 2019 · 0 comments · Fixed by #3084
Closed

nz-select was marked as touched when initial state of FormControl is disabled #3059

agmoura opened this issue Mar 11, 2019 · 0 comments · Fixed by #3084

Comments

@agmoura
Copy link

agmoura commented Mar 11, 2019

Reproduction link

https://stackblitz.com/edit/angular-klbag5

Steps to reproduce

just run minimal reproduction and verify that the touched state of nz-select component is equal true.

What is expected?

Initial touched state equals false.

What is actually happening?

Initial touched state equals true.

Environment Info
ng-zorro-antd 7.0.1
Browser Chrome 72.0.3626.121 64 bits

This behavior only happens if the initial disabled state is true. I noticed that touched state is changed at ngAfterViewInit lifecycle hook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants