Skip to content

Commit

Permalink
fix: Composer losing edit state when resizing the window. (#31589)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored Jan 31, 2024
1 parent 21dddab commit 037894b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curly-years-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fixed an issue with the composer losing its edit state and highlighted after resizing the window.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const MessageBox = ({

const callbackRef = useCallback(
(node: HTMLTextAreaElement) => {
if (node === null) {
if (node === null || chat.composer) {
return;
}
chat.setComposerAPI(createComposerAPI(node, storageID));
Expand Down

0 comments on commit 037894b

Please sign in to comment.