Add React.ReactInstance to OverlayProps.target (#16379)

OverlayProps.target can be either a function or a React.ReactInstance.
See: https://github.com/react-bootstrap/react-overlays/blob/master/src/Position.js
Line: 82 and 83
This commit is contained in:
Jens Duttke 2017-06-01 17:31:34 +02:00 committed by Andy
parent 592bec15d4
commit 24c67b0a09

View File

@ -442,7 +442,7 @@ declare namespace ReactBootstrap {
placement?: string;
rootClose?: boolean;
show?: boolean;
target?: Function;
target?: Function | React.ReactInstance;
shouldUpdatePosition?: boolean;
}
class Overlay extends React.Component<OverlayProps, {}> {