From c81b8145b5d812ca973b262ca4e26eaae0c6c86e Mon Sep 17 00:00:00 2001 From: spandev <143828642+Spandan-Mishra@users.noreply.github.com> Date: Sat, 18 Oct 2025 23:50:57 +0530 Subject: [PATCH] fixed spacing between bold and italic buttons in description of new event type (#24542) --- packages/ui/components/editor/plugins/ToolbarPlugin.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx index ca62a447bf..24cb75e303 100644 --- a/packages/ui/components/editor/plugins/ToolbarPlugin.tsx +++ b/packages/ui/components/editor/plugins/ToolbarPlugin.tsx @@ -360,7 +360,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { } }); } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [props.updateTemplate]); useEffect(() => { @@ -375,7 +374,7 @@ export default function ToolbarPlugin(props: TextEditorProps) { $getRoot().select(); try { $insertNodes(nodes); - } catch (e: unknown) { + } catch { // resolves: "topLevelElement is root node at RangeSelection.insertNodes" // @see https://stackoverflow.com/questions/73094258/setting-editor-from-html const paragraphNode = $createParagraphNode(); @@ -397,7 +396,6 @@ export default function ToolbarPlugin(props: TextEditorProps) { }); }); } - // eslint-disable-next-line react-hooks/exhaustive-deps }, []); useEffect(() => { @@ -467,7 +465,7 @@ export default function ToolbarPlugin(props: TextEditorProps) { > )} - <> +