Skip to content

Commit

Permalink
fix #41363
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Feb 1, 2018
1 parent 357ac46 commit d80c6f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/base/browser/ui/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export class BaseDropdown extends ActionRunner {
this.$label.on([EventType.CLICK, EventType.MOUSE_DOWN, GestureEventType.Tap], (e: Event) => {
EventHelper.stop(e, true); // prevent default click behaviour to trigger
}).on([EventType.MOUSE_DOWN, GestureEventType.Tap], (e: Event) => {
if (e instanceof MouseEvent && e.detail > 1) {
return; // prevent multiple clicks to open multiple context menus (https://github.com/Microsoft/vscode/issues/41363)
}

this.show();
}).appendTo(this.$el);

Expand Down

0 comments on commit d80c6f6

Please sign in to comment.