1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 17:23:07 +01:00

Don't call onBeforeChange when emitting new state

This commit is contained in:
Samy Pesse 2016-10-22 20:58:02 +02:00
parent 112b7c8406
commit d2850870e3

View File

@ -202,8 +202,6 @@ class Editor extends React.Component {
onChange = (state) => {
if (state == this.state.state) return
state = this.onBeforeChange(state)
for (const plugin of this.state.plugins) {
if (!plugin.onChange) continue
const newState = plugin.onChange(state, this)