Fix tooltip overlay warning, close #6897

This commit is contained in:
afc163 2017-07-19 20:38:39 +08:00
parent 98faa4378c
commit 545d171223
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ The simplest usage.
import { Tooltip } from 'antd';
ReactDOM.render(
<Tooltip title="prompt text">
<Tooltip title={undefined}>
<span>Tooltip will show when mouse enter.</span>
</Tooltip>
, mountNode);

View File

@ -206,7 +206,7 @@ export default class Tooltip extends React.Component<TooltipProps, any> {
getTooltipContainer={getPopupContainer || getTooltipContainer}
ref="tooltip"
builtinPlacements={this.getPlacements()}
overlay={overlay || title}
overlay={overlay || title || ''}
visible={visible}
onVisibleChange={this.onVisibleChange}
onPopupAlign={this.onPopupAlign}