remove text in @ to mention...

This commit is contained in:
Mathew Pareles 2025-05-05 01:36:08 -07:00
parent e70915afc3
commit 7dc86502e3

View file

@ -383,9 +383,8 @@ export const VoidInputBox2 = forwardRef<HTMLTextAreaElement, InputBox2Props>(fun
// Focus the textarea first
textarea.focus();
// The most reliable way to simulate typing is to use execCommand
// which will trigger all the appropriate native events
document.execCommand('insertText', false, text + ' '); // add space after too
// Insert the @ to mention text in the editor (we decided not to do this for now)
// 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