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

Commit

Permalink
fix(dropdown): do not close on right click
Browse files Browse the repository at this point in the history
- Do not close the dropdown on right click when open due to Firefox's
  behavior
  • Loading branch information
wesleycho committed Dec 11, 2015
1 parent fe68977 commit 0468bf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dropdown/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])

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

if (evt && evt.which === 3) { return; }

var toggleElement = openScope.getToggleElement();
if (evt && toggleElement && toggleElement[0].contains(evt.target)) {
return;
Expand Down

0 comments on commit 0468bf2

Please sign in to comment.