Skip to content

Commit

Permalink
fixed placeholder change corrupts current state
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrissi2812 committed Feb 26, 2019
1 parent 89e6436 commit 0f44e74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/tiptap-extensions/src/extensions/Placeholder.js
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 0f44e74

Please sign in to comment.