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:
parent
112b7c8406
commit
d2850870e3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user