fix: weird input behavior on some android keyboards

This commit is contained in:
Miodec 2025-12-02 20:42:51 +01:00
parent ad8e4f65b5
commit b64db65e59

View file

@ -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;