mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 22:27:06 +08:00
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:
parent
7c9b8c42c1
commit
a052ecee62
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user