This commit is contained in:
Timothy Jaeryang Baek 2025-08-21 21:25:42 +04:00
parent 71d7ba6c07
commit 3e28c46026

View file

@ -1442,6 +1442,7 @@
} }
messageInput?.setText(''); messageInput?.setText('');
prompt = '';
// Reset chat input textarea // Reset chat input textarea
if (!($settings?.richTextInput ?? true)) { if (!($settings?.richTextInput ?? true)) {
@ -2334,6 +2335,7 @@
clearDraft(); clearDraft();
if (e.detail || files.length > 0) { if (e.detail || files.length > 0) {
await tick(); await tick();
submitPrompt( submitPrompt(
($settings?.richTextInput ?? true) ($settings?.richTextInput ?? true)
? e.detail.replaceAll('\n\n', '\n') ? e.detail.replaceAll('\n\n', '\n')