Merge pull request #3185 from matrix-org/jryans/tooltip-target-null
Fix interactive tooltip null target error
This commit is contained in:
commit
87188e9229
1 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,10 @@ export default class InteractiveTooltip extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
showTooltip() {
|
showTooltip() {
|
||||||
|
// Don't enter visible state if we haven't collected the target yet
|
||||||
|
if (!this.target) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
visible: true,
|
visible: true,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue