From 098bde92c555aef8ce310909429931b3b7aab07c Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 23 Jan 2016 14:56:48 +0800 Subject: [PATCH] fix props passed to children, ref ant-design/ant-design#811 --- src/Tooltip.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tooltip.jsx b/src/Tooltip.jsx index 385348a..c5fcc36 100644 --- a/src/Tooltip.jsx +++ b/src/Tooltip.jsx @@ -65,8 +65,8 @@ const Tooltip = React.createClass({ transitionName, animation, placement, align, destroyTooltipOnHide, - defaultVisible, getTooltipContainer} = this.props; - const extraProps = {}; + defaultVisible, getTooltipContainer, ...restProps} = this.props; + const extraProps = {...restProps}; if ('visible' in this.props) { extraProps.popupVisible = this.props.visible; }