Skip to content

Commit

Permalink
Blank space bug fix (#71)
Browse files Browse the repository at this point in the history
* now preventing opening textarea to black spaces

* now preventing opening textarea to black spaces
  • Loading branch information
NicoMorenoSirius committed Jun 21, 2024
1 parent 0e61968 commit 354a83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/mocksi-lite/content/EditMode/editMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function onDoubleClickText(event: MouseEvent) {
cancelEditWithoutChanges(document.getElementById("mocksiSelectedText"));
const targetedElement: HTMLElement = event.target as HTMLElement;
const selection = window.getSelection();
if (selection?.toString()) {
if (selection?.toString()?.trim()) {
applyEditor(targetedElement, selection, event.shiftKey);
document.getElementById("mocksiTextArea")?.focus();
} else {
Expand Down

0 comments on commit 354a83b

Please sign in to comment.