We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b9220 commit 43e0bc7Copy full SHA for 43e0bc7
1 file changed
frontend/src/ts/input/handlers/insert-text.ts
@@ -62,12 +62,12 @@ type OnInsertTextParams = {
62
63
export async function onInsertText(options: OnInsertTextParams): Promise<void> {
64
const { now, lastInMultiIndex, isCompositionEnding } = options;
65
- const { inputValue } = getInputElementValue();
66
67
if (options.data.length > 1) {
68
// remove the entire data from the input value
69
// make sure to not call TestInput.input.syncWithInputElement in here
70
// it will be updated later in the body of onInsertText
+ const { inputValue } = getInputElementValue();
71
setInputElementValue(inputValue.slice(0, -options.data.length));
72
for (let i = 0; i < options.data.length; i++) {
73
const char = options.data[i] as string;
0 commit comments