Merge pull request #3185 from matrix-org/jryans/tooltip-target-null

Fix interactive tooltip null target error
pull/21833/head
J. Ryan Stinnett 2019-07-05 16:28:12 +01:00 committed by GitHub
commit 87188e9229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,10 @@ export default class InteractiveTooltip extends React.Component {
}
showTooltip() {
// Don't enter visible state if we haven't collected the target yet
if (!this.target) {
return;
}
this.setState({
visible: true,
});