From 4ec52aa8e00aca16b11cfbf27baba757d3e9a7d5 Mon Sep 17 00:00:00 2001 From: FenrisWulf Date: Wed, 8 Nov 2017 13:42:29 -0800 Subject: [PATCH] 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 --- types/rc-tooltip/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/rc-tooltip/index.d.ts b/types/rc-tooltip/index.d.ts index 20f65e3059..be0246fc13 100644 --- a/types/rc-tooltip/index.d.ts +++ b/types/rc-tooltip/index.d.ts @@ -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;