Skip to content

Commit

Permalink
close ref dropdown when clicking outside (#418)
Browse files Browse the repository at this point in the history
Former-commit-id: 90394b9033205e6796f3bc3f9f6d1de7d311a8d0
  • Loading branch information
johnnyaug authored Aug 5, 2020
1 parent 6f3f7f8 commit cde088c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/src/components/RefDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const RefDropdown = ({ repo, selected, selectRef, onCancel, prefix = '', emptyTe
}, []);

const popover = (
<Overlay target={target.current} show={show} placement="bottom">
<Overlay target={target.current} show={show} placement="bottom" rootClose={true} onHide={() => setShow(false)}>
<Popover className="ref-popover">
<Popover.Content>
<BranchSelector
Expand Down

0 comments on commit cde088c

Please sign in to comment.