mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 10:14:02 +02:00
Correct onDOMBeforeInput typings (#3549)
TS will report an error when trying to access event.inputType since it was declared of type "Event" and not "InputEvent".
This commit is contained in:
@@ -89,7 +89,7 @@ export interface RenderLeafProps {
|
||||
|
||||
export type EditableProps = {
|
||||
decorate?: (entry: NodeEntry) => Range[]
|
||||
onDOMBeforeInput?: (event: Event) => void
|
||||
onDOMBeforeInput?: (event: InputEvent) => void
|
||||
placeholder?: string
|
||||
readOnly?: boolean
|
||||
role?: string
|
||||
|
Reference in New Issue
Block a user