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

Commit e07f9fd

Browse files
author
Luke Hutton
committed
fix(dropdown): fix dropdown re-focusing on outside click
1 parent fc2a8b7 commit e07f9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dropdown/dropdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.multiMap', 'ui.bootstrap.
8888
var closeDropdown = function(evt) {
8989
// This method may still be called during the same mouse event that
9090
// unbound this event handler. So check openScope before proceeding.
91-
if (!openScope) { return; }
91+
if (!openScope || !openScope.isOpen) { return; }
9292

9393
if (evt && openScope.getAutoClose() === 'disabled') { return; }
9494

0 commit comments

Comments
 (0)