From a9ee5d6f7fd070982565a8a36aa1bf40fafbaa64 Mon Sep 17 00:00:00 2001 From: Mehul Date: Tue, 11 Jul 2023 14:56:43 +0530 Subject: [PATCH] fixes: about section unnecessary scrollbar (#10043) --- packages/ui/components/editor/Editor.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ui/components/editor/Editor.tsx b/packages/ui/components/editor/Editor.tsx index 260cc8fe8f..ecc6a43aa2 100644 --- a/packages/ui/components/editor/Editor.tsx +++ b/packages/ui/components/editor/Editor.tsx @@ -90,7 +90,11 @@ export const Editor = (props: TextEditorProps) => { className="editor-input" /> } - placeholder={
{props.placeholder || ""}
} + placeholder={ + props?.placeholder ? ( +
{props.placeholder}
+ ) : null + } ErrorBoundary={LexicalErrorBoundary} />