You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Fix interactive tooltip null target error
Fixes https://github.com/vector-im/riot-web/issues/10232
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user