Skip to content

Commit 0116f76

Browse files
authored
Fix issue where tooltip won't show for adjacent elements.
1 parent 10b8e43 commit 0116f76

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
@@ -234,7 +234,7 @@ class ReactTooltip extends Component {
234234
// Don't trigger other elements belongs to other ReactTooltip
235235
const targetArray = this.getTargetArray(this.props.id)
236236
const isMyElement = targetArray.some(ele => ele === e.currentTarget)
237-
if (!isMyElement || this.state.show) return
237+
if (!isMyElement) return
238238
}
239239
// Get the tooltip content
240240
// calculate in this phrase so that tip width height can be detected

0 commit comments

Comments
 (0)