Skip to content

Commit

Permalink
remove redundant span
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Jun 9, 2015
1 parent 03411a0 commit ae93dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "rc-tooltip",
"version": "2.0.3",
"version": "2.0.4",
"description": "tooltip ui component for react",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion src/Tooltip.jsx
Expand Up @@ -161,7 +161,7 @@ class Tooltip extends React.Component {
var popupElement = props.renderPopupToBody ? null : this.getPopupElement();

return (<span className={`${props.prefixCls}-wrap`} {...mouseProps}>
{React.cloneElement(child, newChildProps)} {popupElement}
{[React.cloneElement(child, newChildProps), popupElement]}
</span>);
}
}
Expand Down

0 comments on commit ae93dc4

Please sign in to comment.