From 2907405d4e3f15feffebe1c1358b23819a4553ed Mon Sep 17 00:00:00 2001 From: Zoheb Ahmed <75200954+oneknucklehead@users.noreply.github.com> Date: Mon, 8 May 2023 17:41:25 +0530 Subject: [PATCH] Fixes Bold/Italics Issue (#8613) Co-authored-by: Alex van Andel --- packages/ui/components/editor/plugins/ToolbarPlugin.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx index adb30ae029..5e254d32a1 100644 --- a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx +++ b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx @@ -459,9 +459,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { StartIcon={Bold} onClick={() => { editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold"); - if (isItalic) { - editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic"); - } }} className={isBold ? "bg-subtle" : ""} /> @@ -474,9 +471,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { StartIcon={Italic} onClick={() => { editor.dispatchCommand(FORMAT_TEXT_COMMAND, "italic"); - if (isItalic) { - editor.dispatchCommand(FORMAT_TEXT_COMMAND, "bold"); - } }} className={isItalic ? "bg-subtle" : ""} />