Skip to content

Commit

Permalink
fix: Toggle message box formatting toolbar on click (RocketChat#29727)
Browse files Browse the repository at this point in the history
Co-authored-by: gabriellsh <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 5, 2023
1 parent 6fe38a4 commit 5e387a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-parents-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

Fix Toggle message box formatting toolbar on click
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ const FormattingToolbarDropdown = ({ composer, items, ...props }: FormattingTool
};

return (
<Option key={index} onClick={handleFormattingAction}>
<Option
key={index}
onClick={() => {
handleFormattingAction();
toggle();
}}
>
<OptionIcon name={'icon' in formatter ? formatter.icon : 'link'} />
<OptionContent>{t(formatter.label)}</OptionContent>
</Option>
Expand Down

0 comments on commit 5e387a1

Please sign in to comment.