Skip to content

Commit

Permalink
Close diff options on mouse down outside of popover
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed Dec 11, 2024
1 parent 1a8a45f commit e0beb13
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 e0beb13

Please sign in to comment.