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.

[dropdown] Not unbinding keydown handler properly when closing dropdown by opening another one #6208

@Agamnentzar

Description

@Agamnentzar

Keydown handle for dropdowns is not being unbinded correctly when dropdown is closed by opening another dropdown.

http://plnkr.co/edit/wQ0j12hABSNz6pYEqRQL?p=preview

Steps to reproduce

  1. Open plunker, open dev console
  2. Click on first dropdown to open it
  3. Click on second dropdown to open it (without closing the first one first)
  4. Click on the background to close second dropdown
  5. Start pressing keyboard buttons
  6. dev console will show Uncaught TypeError: Cannot read property 'getDropdownElement' of null errors on each key press

Angular: 1.5.5
UIBS: 2.1.3
Bootstrap: 3.3.6

Probably introduced by 6bad759

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions