Skip to content

Commit

Permalink
fix: Toggle message box formatting toolbar on click (#29727)
Browse files Browse the repository at this point in the history
Co-authored-by: gabriellsh <40830821+gabriellsh@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and sampaiodiego committed Jul 13, 2023
1 parent f855aaf commit ef4cd97
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
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fix Toggle message box formatting toolbar on click
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 ef4cd97

Please sign in to comment.