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

Commit 44ab0a8

Browse files
patricksmmswesleycho
authored andcommitted
fix(dropDown): remove dropdown on close
- Unbind keybind on close Closes #6326 Fixes #6314
1 parent 1962485 commit 44ab0a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dropdown/dropdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])
272272
scope.focusToggleElement();
273273
uibDropdownService.open(scope, $element);
274274
} else {
275+
$document.off('keydown', uibDropdownService.keybindFilter);
275276
uibDropdownService.close(scope, $element);
276277
if (self.dropdownMenuTemplateUrl) {
277278
if (templateScope) {

0 commit comments

Comments
 (0)