Fix switching bug and br tag in firefox

This commit is contained in:
Florian Duros 2022-10-26 18:18:34 +02:00
parent 423f87a43a
commit 928a23e9d0
No known key found for this signature in database
GPG key ID: 9700AA5870258A0B
2 changed files with 3 additions and 1 deletions

View file

@ -339,6 +339,7 @@ export class MessageComposer extends React.Component<IProps, IState> {
this.state.isRichTextEnabled,
{ mxClient: this.props.mxClient, roomContext: this.context, permalinkCreator, relation, replyToEvent });
dis.dispatch({ action: Action.ClearAndFocusSendMessageComposer });
this.setState({ composerContent: '', initialComposerContent: '' });
}
};