Skip to content

Commit

Permalink
Merge pull request #308 from desmosinc/eli/fix-small-selection-bug
Browse files Browse the repository at this point in the history
truly clear selection
  • Loading branch information
eluberoff authored Sep 18, 2024
2 parents 25ddee4 + 6ba0678 commit dd34480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/focusBlur.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ class Controller_focusBlur extends Controller_exportText {
};

private handleTextareaFocusStatic = () => {
if (!this.cursor.selection || this.cursor.selection.isCleared()) {
if (!this.cursor.selection) {
this.cursor.controller.selectAll();
}
this.blurred = false;
};

private handleTextareaBlurStatic = () => {
this.cursor.selection?.clear();
this.cursor.clearSelection();
};

private handleWindowBlur = () => {
Expand Down

0 comments on commit dd34480

Please sign in to comment.