mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
Fix tooltip overlay warning, close #6897
This commit is contained in:
parent
98faa4378c
commit
545d171223
@ -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);
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user