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

Default value isn't selected in autocomplete #4362

Closed
DRYmag opened this issue Oct 29, 2019 · 0 comments
Closed

Default value isn't selected in autocomplete #4362

DRYmag opened this issue Oct 29, 2019 · 0 comments

Comments

@DRYmag
Copy link

DRYmag commented Oct 29, 2019

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-oevrgr?file=src/app/app.component.ts

Steps to reproduce

In a reactive form with an input and an autocomplete, there is a default value for the form control. Click on the input to show the autocomplete.

What is expected?

When a value is provided from the reactive form, the corresponding option must be selected.

What is actually happening?

No option is selected, the first one has just focus.

Environment Info
ng-zorro-antd 8.4.1
Browser Chrome 77.0.3865.120
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Oct 31, 2019
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
* fix(module:auto-complete): default value not selected

close NG-ZORRO#4362

* docs(module:auto-complete): remove OnPush
@hsuanxyz hsuanxyz mentioned this issue Apr 15, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
* fix(module:auto-complete): default value not selected

close NG-ZORRO#4362

* docs(module:auto-complete): remove OnPush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants