1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

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

Fix interactive tooltip null target error
This commit is contained in:
J. Ryan Stinnett
2019-07-05 16:28:12 +01:00
committed by GitHub

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,
});