mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 12:14:14 +02:00
fix: make onDOMBeforeInput optional (#3138)
Fix this typescript error: ``` Property 'onDOMBeforeInput' is missing in type '{}' but required in type ... ``` with this code: ``` <Slate editor={editor} defaultValue={defaultValue}> <Editable /> </Slate> ```
This commit is contained in:
committed by
Ian Storm Taylor
parent
b2c5d57788
commit
f8c8ae8596
@@ -38,7 +38,7 @@ import {
|
|||||||
|
|
||||||
export const Editable = (props: {
|
export const Editable = (props: {
|
||||||
decorate?: (entry: NodeEntry) => Range[]
|
decorate?: (entry: NodeEntry) => Range[]
|
||||||
onDOMBeforeInput: (event: Event) => void
|
onDOMBeforeInput?: (event: Event) => void
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
readOnly?: boolean
|
readOnly?: boolean
|
||||||
role?: string
|
role?: string
|
||||||
|
Reference in New Issue
Block a user