Scheduling infrastructure for absolutely everyone.
Fixes Bold/Italics Issue (#8613)
Zoheb Ahmed2907405d4e3f
diff --git a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx b/packages/ui/components/editor/plugins/ToolbarPlugin.tsxindex adb30ae029d..5e254d32a1d 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" : ""}/>