1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 04:20:26 +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

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