From e0beb13418c3a24f7805bbc689fb49fa04c06c11 Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Wed, 11 Dec 2024 13:40:15 +0100 Subject: [PATCH] Close diff options on mouse down outside of popover --- app/src/ui/diff/diff-options.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/ui/diff/diff-options.tsx b/app/src/ui/diff/diff-options.tsx index 379ea0d66d9..27862eba87c 100644 --- a/app/src/ui/diff/diff-options.tsx +++ b/app/src/ui/diff/diff-options.tsx @@ -116,6 +116,7 @@ export class DiffOptions extends React.Component< anchor={this.gearIconRef.current} anchorPosition={PopoverAnchorPosition.BottomRight} decoration={PopoverDecoration.Balloon} + onMousedownOutside={this.closePopover} onClickOutside={this.closePopover} >

{header}