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

Dropdown isn't closed when focus leaves menu or triggering element #3140

Closed
maxokorokov opened this issue Apr 25, 2019 · 2 comments
Closed

Comments

@maxokorokov
Copy link
Member

maxokorokov commented Apr 25, 2019

Bug description:

Dropdown menu should be closed when focus leaves either dropdown menu or triggering element.

Link to minimally-working StackBlitz that reproduces the issue:

Stackblitz with both ng-bootstrap and bootstrap dropdowns to compare:

https://stackblitz.com/edit/angular-uahpzh?file=index.html

Scenario 1:

  • Focus ng-bootstrap button with keyboard
  • Press ArrowDown to open menu
  • Press Shift+Tab to focus Before button
  • Dropdown should be closed, but it's not

Scenario 2:

  • Focus ng-bootstrap button with keyboard
  • Press ArrowDown to open menu
  • Press Tab until focus leaves dropdown menu and focuses bootstrap button
  • Dropdown should be closed, but it's not

Versions of Angular, ng-bootstrap and Bootstrap:

ng-bootstrap: 4.1.1

@dfvgbh
Copy link

dfvgbh commented Jul 19, 2019

Any updates?

@mendeza
Copy link

mendeza commented Sep 24, 2019

Also interested.

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