Add optional parameter to rc-tooltip onVisibleChange

The onVisibleChange includes a visible boolean that can be used. See:
069f7e1baf/src/Tooltip.jsx (L93)
6e3c43735f/src/index.js (L417)
This commit is contained in:
FenrisWulf
2017-11-08 13:42:29 -08:00
committed by dnichol
parent 954ee278de
commit 4ec52aa8e0

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;