mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 12:14:14 +02:00
fix: Unknown event handler property onEvent
(#2925)
* fix: Unknown event handler property `onEvent` ``` index.js:1 Warning: Unknown event handler property `onEvent`. It will be ignored. in div (created by Content) in Content (created by Editor) ``` * fix: make onEvent required Seems this prop is provided in `component/editor.js`
This commit is contained in:
committed by
Ian Storm Taylor
parent
6aba4260f8
commit
5686c3d8cc
@@ -57,6 +57,7 @@ class Content extends React.Component {
|
||||
contentKey: Types.number,
|
||||
editor: Types.object.isRequired,
|
||||
id: Types.string,
|
||||
onEvent: Types.func.isRequired,
|
||||
readOnly: Types.bool.isRequired,
|
||||
role: Types.string,
|
||||
spellCheck: Types.bool.isRequired,
|
||||
|
Reference in New Issue
Block a user