Skip to content

Commit

Permalink
hotfix: clear events prior to updating nodes state (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong authored Jan 24, 2021
1 parent 9184a05 commit 6fdc92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/editor/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ const Methods = (
},

replaceNodes(nodes: Nodes) {
state.nodes = nodes;
this.clearEvents();
state.nodes = nodes;
},

clearEvents() {
Expand Down

0 comments on commit 6fdc92d

Please sign in to comment.