From 5496a4dce667a28aad3e2f7e008be66470dd1d10 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 5 Jul 2019 15:02:06 +0100 Subject: [PATCH] Fix interactive tooltip null target error Fixes https://github.com/vector-im/riot-web/issues/10232 --- src/components/views/elements/InteractiveTooltip.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/views/elements/InteractiveTooltip.js b/src/components/views/elements/InteractiveTooltip.js index 2847d72955..617c392f2b 100644 --- a/src/components/views/elements/InteractiveTooltip.js +++ b/src/components/views/elements/InteractiveTooltip.js @@ -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, });