Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

multiple uib-dropdown components keyboard-nav issue #6335

Open
@ashraffsmd

Description

@ashraffsmd

Bug description: If there are multiple uib-dropdown components in a single page with keyboard-nav enabled, clicking on second dropdown while first dropdown still open breaks keyboard navigation for the second dropdown.

Steps to reproduce:

  1. Open the link to plunker provided.
  2. Click on first dropdown and check keyboard navigation which is working fine.
  3. Without closing the first dropdown, click on second dropdown and check keyboard navigation for this.

Expected: When down arrow is pressed, 'Action' option should be selected.

Actual: 'Another action' option is selected.

After that, the keyboard navigation is not working as expected for all the dropdowns.

Note that this issue is similar to #6314. While it talks only about a keyboard-nav enabled dropdown and a non keyboard-nav enabled dropdown, the current issue talks about keyboard navigation issue in multiple dropdown components in a single page.

PS: Tried incorporating #6314's fix to check if it fixes the current issue. But when that fix is added, the second dropdown keyboard navigation is not triggered at all.

Link to minimally-working plunker that reproduces the issue:

https://plnkr.co/edit/kGDpkqYPdY5B4RPxAxB8?p=preview

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.8

UIBS: 2.3.0

Bootstrap: 3.3.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions