mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
no show toolitp when there is no title
This commit is contained in:
parent
776238eda9
commit
7ae46cd406
@ -18,11 +18,11 @@ export default React.createClass({
|
||||
right: 'zoom-left'
|
||||
})[this.props.placement];
|
||||
return (
|
||||
<Tooltip transitionName={transitionName}
|
||||
this.props.title ? <Tooltip transitionName={transitionName}
|
||||
overlay={this.props.title}
|
||||
{...this.props}>
|
||||
{this.props.children}
|
||||
</Tooltip>
|
||||
</Tooltip> : this.props.children
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user