1
0
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:
Josias
2021-03-31 22:45:20 +02:00
committed by GitHub
parent e4e48b9fa7
commit a95ec9249d

View File

@@ -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