mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
refac
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user