Skip to content

Commit

Permalink
feat(editor): render empty fragment if toolbar and editable are null
Browse files Browse the repository at this point in the history
The editor now renders an empty fragment instead of nothing when both the toolbar and editable props are null. This ensures that the editor always renders something, even if it's just an empty fragment.
  • Loading branch information
ktun95 committed Feb 17, 2025
1 parent c658689 commit fcea41f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const Editor = ({
toolbar,
OfromNullable,
Omap((tb) => <Grid item>{tb}</Grid>),
OgetOrElse(() => <></>)
)}
{pipe(
editable,
Expand Down

0 comments on commit fcea41f

Please sign in to comment.