mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Fix interactive tooltip null target error
Fixes https://github.com/vector-im/riot-web/issues/10232
This commit is contained in:
parent
2b5d9961c0
commit
5496a4dce6
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user