Skip to content

Commit

Permalink
Merge pull request desktop#19709 from desktop/close-diff-options-on-m…
Browse files Browse the repository at this point in the history
…ousedown

Close diff options on mouse down outside of popover
  • Loading branch information
niik authored Dec 12, 2024
2 parents b115199 + e0beb13 commit eaeea3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/ui/diff/diff-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
<h3 id="diff-options-popover-header">{header}</h3>
Expand Down

0 comments on commit eaeea3a

Please sign in to comment.