Skip to content

Commit f77cc60

Browse files
author
Timofey Dergachev
authored
fix: Unknown event handler property onEvent (#2)
* 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`
1 parent 32130d3 commit f77cc60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/slate-react/src/components/content.js

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class Content extends React.Component {
5757
contentKey: Types.number,
5858
editor: Types.object.isRequired,
5959
id: Types.string,
60+
onEvent: Types.func.isRequired,
6061
readOnly: Types.bool.isRequired,
6162
role: Types.string,
6263
spellCheck: Types.bool.isRequired,

0 commit comments

Comments
 (0)