Skip to content

Commit

Permalink
fix: updated Overlay Trigger to support flip property (#4660)
Browse files Browse the repository at this point in the history
* Updated Overlay Trigger to support flip property

* Add flip prop to Overlay type definitions
  • Loading branch information
Tarun047 authored and jquense committed Oct 14, 2019
1 parent b30a10a commit ed77ae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OverlayTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ const propTypes = {
* control, consider using the Overlay component directly.
*/
defaultShow: PropTypes.bool,
/**
The initial flip state of the Overlay.
*/
flip: PropTypes.bool,

/**
* An element or text to overlay next to the target.
Expand Down
1 change: 1 addition & 0 deletions types/components/OverlayTrigger.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface OverlayTriggerProps
trigger?: TriggerType | TriggerType[];
delay?: number | { show: number; hide: number };
defaultShow?: boolean;
flip?: boolean;
overlay: React.ReactNode | (() => React.ReactNode);
target?: never;
onHide?: never;
Expand Down

0 comments on commit ed77ae7

Please sign in to comment.