mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 18:53:59 +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 = {
|
export type EditableProps = {
|
||||||
decorate?: (entry: NodeEntry) => Range[]
|
decorate?: (entry: NodeEntry) => Range[]
|
||||||
onDOMBeforeInput?: (event: Event) => void
|
onDOMBeforeInput?: (event: InputEvent) => void
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
readOnly?: boolean
|
readOnly?: boolean
|
||||||
role?: string
|
role?: string
|
||||||
|
Reference in New Issue
Block a user