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

Select component should not display dropdown menu correctly when using NzSelectComponent.focus API #3168

Closed
YuchenWell opened this issue Mar 26, 2019 · 1 comment

Comments

@YuchenWell
Copy link
Contributor

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-d88fxe

Steps to reproduce

  • Add a new select component into DOM.
  • Use NzSelectComponent.focus( ).
  • Input text in search box (please do not click the search box before input text).

What is expected?

I hope select component do the same thing as normal situation.

What is actually happening?

Dropdown menu should not display as normal.

Environment Info
ng-zorro-antd 7.1.0
Browser Chrome 72.0.3626.121
@vthinkxie
Copy link
Member

https://stackblitz.com/edit/ng-zorro-antd-start-rfw2m5?file=src/app/app.component.ts
this may help
nzOpen and focus() are two different api, the focus() api won't open the dropdown

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

3 participants