mirror of
https://github.com/voideditor/void
synced 2026-05-23 17:38:23 +00:00
small
This commit is contained in:
parent
7df49a769a
commit
d67cfb5b33
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue