Skip to content

Commit

Permalink
fix: fix pasting twice in formula editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ybzky committed Sep 19, 2024
1 parent c357724 commit 35661f0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ export class DocSelectionRenderController extends Disposable implements IRenderM
const { offsetX, offsetY } = evt;

setTimeout(() => {
if (this._editorService.getEditor(unitId)?.editorUnitId === this._editorService.getFocusId()) {
return;
}
this._setEditorFocus(unitId);
this._docSelectionRenderService.setCursorManually(offsetX, offsetY);
}, 0);
Expand Down

0 comments on commit 35661f0

Please sign in to comment.