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

Typeahead "Open on focus" instantly re-opens popup menu after clicking #2854

Closed
tobihagemann opened this issue Nov 8, 2018 · 0 comments · Fixed by #2869
Closed

Typeahead "Open on focus" instantly re-opens popup menu after clicking #2854

tobihagemann opened this issue Nov 8, 2018 · 0 comments · Fixed by #2869

Comments

@tobihagemann
Copy link

Bug description:

The gist is that you can't click on entries in the popup menu anymore if you follow the "Open on focus" example of typeahead and work with remote data. It's not directly reproducible on ng-bootstrap's website but I've posted a minimally-working StackBlitz below which is a combination of the "Wikipedia search" and "Open on focus" examples.

The core issue is probably that you can't distinguish between an actual focus by the user and an auto-focus by the breaking change.

Please see the full bug description here: #2792 (comment)

@lucasklaassen was able to confirm the bug as well.

Link to minimally-working StackBlitz that reproduces the issue:

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

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 7.0.0 or higher

ng-bootstrap: 3.4.0 (but probably 3.3.0/3.3.1 or higher)

Bootstrap: 4.0.0 or higher

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.

2 participants