Skip to content

Commit 4d3661b

Browse files
committed
fix(index.js): add missing argument so tooltip hides.
If getContent returns '', the tooltip should hide. A missing argument caused this not to work for dynamic content.
1 parent 10b8e43 commit 4d3661b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class ReactTooltip extends Component {
295295
this.intervalUpdateContent = setInterval(() => {
296296
if (this.mount) {
297297
const {getContent} = this.props
298-
const placeholder = getTipContent(originTooltip, getContent[0](), isMultiline)
298+
const placeholder = getTipContent(originTooltip, '', getContent[0](), isMultiline)
299299
const isEmptyTip = typeof placeholder === 'string' && placeholder === ''
300300
this.setState({
301301
placeholder,

0 commit comments

Comments
 (0)