Add optional parameter to rc-tooltip onVisibleChange

The onVisibleChange includes a visible boolean that can be used. See:
https://github.com/react-component/tooltip/blob/069f7e1baf1c02344cb25bbbbea93be2ffbcdcee/src/Tooltip.jsx#L93
https://github.com/react-component/trigger/blob/6e3c43735fb4a3352c6d22395fa977d8940f65a4/src/index.js#L417
This commit is contained in:
FenrisWulf
2017-11-08 13:49:59 -08:00
committed by dnichol
parent 954ee278de
commit 4ec52aa8e0
+1 -1
View File
@@ -23,7 +23,7 @@ declare namespace RCTooltip {
overlayStyle?: React.CSSProperties;
prefixCls?: string;
transitionName?: string;
onVisibleChange?: () => void;
onVisibleChange?: (visible?: boolean) => void;
visible?: boolean;
defaultVisible?: boolean;
placement?: Placement | Object;