Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx committed Jul 11, 2024
1 parent 76857d5 commit 4614e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lexical-react/src/LexicalContentEditable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Placeholder({
}): null | JSX.Element {
const showPlaceholder = useCanShowPlaceholder(editor);

const [isEditable, setEditable] = useState(false);
const [isEditable, setEditable] = useState(editor.isEditable());
useLayoutEffect(() => {
setEditable(editor.isEditable());
return editor.registerEditableListener((currentIsEditable) => {
Expand Down

0 comments on commit 4614e92

Please sign in to comment.