Skip to content

Commit

Permalink
fix: add missing props
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang committed Jul 10, 2024
1 parent f12958d commit c501424
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/client/components/Plate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ function PlateInner<
maxLength,
normalizeInitialValue: shouldNormalizeInitialValue,
onChange,
onSelectionChange,
onValueChange,
plugins: pluginsProp,
primary,
readOnly,
Expand Down Expand Up @@ -153,6 +155,10 @@ function PlateInner<
editorRef={editorRef as PlateStoreState['editorRef']}
id={id}
onChange={onChange as PlateStoreState['onChange']}
onSelectionChange={
onSelectionChange as PlateStoreState['onSelectionChange']
}
onValueChange={onValueChange as PlateStoreState['onValueChange']}
plugins={editor.plugins as any}
primary={primary}
rawPlugins={pluginsProp}
Expand Down

0 comments on commit c501424

Please sign in to comment.