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

Commit 0468bf2

Browse files
committed
fix(dropdown): do not close on right click
- Do not close the dropdown on right click when open due to Firefox's behavior
1 parent fe68977 commit 0468bf2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/dropdown/dropdown.js

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])
3636

3737
if (evt && openScope.getAutoClose() === 'disabled') { return; }
3838

39+
if (evt && evt.which === 3) { return; }
40+
3941
var toggleElement = openScope.getToggleElement();
4042
if (evt && toggleElement && toggleElement[0].contains(evt.target)) {
4143
return;

0 commit comments

Comments
 (0)