Skip to content

Commit

Permalink
Update ProseMirrorInner.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
coolov committed Jan 26, 2024
1 parent 987fd37 commit 7de81e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ProseMirrorInner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export function ProseMirrorInner({

const editorState =
"defaultState" in editorProps
? editorProps.defaultState
? // Only use the default state as a fallback for the first render where `editorView` isn't initialized yet
editorView?.state ?? editorProps.defaultState
: editorProps.state;

const editorContextValue = useMemo(
Expand Down

0 comments on commit 7de81e4

Please sign in to comment.