1
0
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:
lin onetwo
2019-08-20 00:09:08 +08:00
committed by Ian Storm Taylor
parent 6aba4260f8
commit 5686c3d8cc

View File

@@ -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,