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

Commit

Permalink
fix(dropdown): prevent premature scope removal
Browse files Browse the repository at this point in the history
- Toggle false after focus executes

Closes #6238
Fixes #6225
  • Loading branch information
nherzing authored and wesleycho committed Sep 24, 2016
1 parent 7671bd6 commit 08ee30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropdown/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])
return;
}

openScope.isOpen = false;
openScope.focusToggleElement();
openScope.isOpen = false;

if (!$rootScope.$$phase) {
openScope.$apply();
Expand Down

0 comments on commit 08ee30a

Please sign in to comment.