mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 13:11:19 +08:00
chore: use vanilla js to try to fix weird stack size error
This commit is contained in:
parent
2506b4f88d
commit
2c161e5cad
1 changed files with 4 additions and 4 deletions
|
|
@ -1434,10 +1434,10 @@ $("#wordsInput").on("input", (event) => {
|
|||
}, 0);
|
||||
});
|
||||
|
||||
$("#wordsInput").on("focus", (event) => {
|
||||
(event.target as HTMLInputElement).selectionStart = (
|
||||
event.target as HTMLInputElement
|
||||
).selectionEnd = (event.target as HTMLInputElement).value.length;
|
||||
document.querySelector("#wordsInput")?.addEventListener("focus", (event) => {
|
||||
const target = event.target as HTMLInputElement;
|
||||
const value = target.value;
|
||||
target.setSelectionRange(value.length, value.length);
|
||||
});
|
||||
|
||||
$("#wordsInput").on("copy paste", (event) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue