Skip to content

Commit

Permalink
fix(Editor): caret position is sometimes incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
luolonghao committed Jul 13, 2024
1 parent 7df798b commit b0c4d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ export class Editor {
this.history.event.on('save', (value, options) => {
this.removeBoxGarbage();
executeCommonMethods(value);
this.selection.sync();
if (options.inputType !== 'insertText') {
this.selection.sync();
this.resetUnsavedInputData();
}
});
Expand Down

0 comments on commit b0c4d9d

Please sign in to comment.