diff --git a/packages/lexical-react/src/LexicalContentEditable.tsx b/packages/lexical-react/src/LexicalContentEditable.tsx index a7097a0e1c9..461a2309f40 100644 --- a/packages/lexical-react/src/LexicalContentEditable.tsx +++ b/packages/lexical-react/src/LexicalContentEditable.tsx @@ -55,9 +55,15 @@ function Placeholder({ return null; } + let placeholder = null; if (typeof content === 'function') { - return content(editable); - } else { - return content; + placeholder = content(editable); + } else if (content !== null) { + placeholder = content; + } + + if (placeholder === null) { + return null; } + return