FIX: safeguard in case the message is active during transition (#21235)

Prior to this fix, we could sometimes still have an active message while the DOM node was already removed.
This commit is contained in:
Joffrey JAFFEUX 2023-04-25 13:16:55 +02:00 committed by GitHub
parent 7c9b8c42c1
commit a052ecee62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,10 @@ export default class ChatMessageActionsDesktop extends Component {
this.context
);
if (!messageContainer) {
return;
}
this.popper = createPopper(messageContainer, element, {
placement: "top-end",
strategy: "fixed",