Skip to content

Commit b633151

Browse files
authored
Merge pull request #368 from tishihar94/patch-1
Fix issue where tooltip won't show for adjacent elements.
2 parents 2364dc6 + 0116f76 commit b633151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class ReactTooltip extends React.Component {
258258
// Don't trigger other elements belongs to other ReactTooltip
259259
const targetArray = this.getTargetArray(this.props.id)
260260
const isMyElement = targetArray.some(ele => ele === e.currentTarget)
261-
if (!isMyElement || this.state.show) return
261+
if (!isMyElement) return
262262
}
263263
// Get the tooltip content
264264
// calculate in this phrase so that tip width height can be detected

0 commit comments

Comments
 (0)