diff --git a/aider/gui_speech_to_text.js b/aider/gui_speech_to_text.js index 2ef85aeb0..91a9dd250 100644 --- a/aider/gui_speech_to_text.js +++ b/aider/gui_speech_to_text.js @@ -58,17 +58,11 @@ // Append to the existing value chatInput.value = chatInput.value + ' ' + text; - // Create a synthetic event that React's onChange will accept + // Create a simplified synthetic event with only essential properties const syntheticEvent = { target: chatInput, currentTarget: chatInput, preventDefault: () => {}, - stopPropagation: () => {}, - persist: () => {}, - isDefaultPrevented: () => false, - isPropagationStopped: () => false, - bubbles: true, - cancelable: true, nativeEvent: new Event('input', { bubbles: true }) };