1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +02:00

fix(slate-react): update onDOMBeforeInput when onDOMBeforeInput prop changes (#3617) (#3829)

Signed-off-by: Diana Lease <dianarlease@gmail.com>
This commit is contained in:
Diana Lease 2020-08-18 18:21:14 -04:00 committed by GitHub
parent 0468290eee
commit 63f099952e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,7 @@ export const Editable = (props: EditableProps) => {
}
}
},
[readOnly]
[readOnly, propsOnDOMBeforeInput]
)
// Attach a native DOM event handler for `beforeinput` events, because React's