diff --git a/components/tooltip/demo/basic.md b/components/tooltip/demo/basic.md index 356223f58e..7d8d3982aa 100644 --- a/components/tooltip/demo/basic.md +++ b/components/tooltip/demo/basic.md @@ -17,7 +17,7 @@ The simplest usage. import { Tooltip } from 'antd'; ReactDOM.render( - + Tooltip will show when mouse enter. , mountNode); diff --git a/components/tooltip/index.tsx b/components/tooltip/index.tsx index 672a360e6c..1312ef91ac 100644 --- a/components/tooltip/index.tsx +++ b/components/tooltip/index.tsx @@ -206,7 +206,7 @@ export default class Tooltip extends React.Component { getTooltipContainer={getPopupContainer || getTooltipContainer} ref="tooltip" builtinPlacements={this.getPlacements()} - overlay={overlay || title} + overlay={overlay || title || ''} visible={visible} onVisibleChange={this.onVisibleChange} onPopupAlign={this.onPopupAlign}