mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
71d7ba6c07
commit
3e28c46026
1 changed files with 2 additions and 0 deletions
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue