mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-30 20:07:52 +08:00
fix: weird input behavior on some android keyboards
This commit is contained in:
parent
ad8e4f65b5
commit
b64db65e59
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
|
|||
// make sure to not call TestInput.input.syncWithInputElement in here
|
||||
// it will be updated later in the body of onInsertText
|
||||
setInputElementValue(inputValue.slice(0, -options.data.length));
|
||||
TestInput.input.syncWithInputElement();
|
||||
for (let i = 0; i < options.data.length; i++) {
|
||||
const char = options.data[i] as string;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue