fixed placeholder change corrupts current state

This commit is contained in:
Chrissi2812
2019-02-26 11:42:07 +01:00
parent 89e6436114
commit 0f44e74d1e

View File

@@ -16,9 +16,8 @@ export default class Placeholder extends Extension {
}
get update() {
return ({ state, view }) => {
// TODO: fix error when content is not empty
view.updateState(state)
return view => {
view.updateState(view.state)
}
}