This commit is contained in:
Mathew Pareles
2025-04-21 02:27:21 -07:00
parent 14b9b1cdc7
commit fcd8509da5
@@ -363,7 +363,7 @@ export const VoidInputBox2 = forwardRef<HTMLTextAreaElement, InputBox2Props>(fun
// The most reliable way to simulate typing is to use execCommand
// which will trigger all the appropriate native events
document.execCommand('insertText', false, text);
document.execCommand('insertText', false, text + ' '); // add space after too
// React's onChange relies on a SyntheticEvent system
// The best way to ensure it runs is to call callbacks directly