Skip to content

Commit

Permalink
Fix live edit
Browse files Browse the repository at this point in the history
  • Loading branch information
LyonSyonII committed Jun 16, 2024
2 parents 0615ba6 + e6e4a32 commit c24d26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function setupEditor(input: HTMLTextAreaElement) {
start -= 1;
}
start >= 0 && input.setRangeText("", start, end, "end");
input.dispatchEvent(new Event("input"))
}
}
})
Expand Down

0 comments on commit c24d26a

Please sign in to comment.