mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: textarea input new line issue
This commit is contained in:
@@ -2309,7 +2309,11 @@
|
|||||||
on:submit={async (e) => {
|
on:submit={async (e) => {
|
||||||
if (e.detail) {
|
if (e.detail) {
|
||||||
await tick();
|
await tick();
|
||||||
submitPrompt(e.detail.replaceAll('\n\n', '\n'));
|
submitPrompt(
|
||||||
|
($settings?.richTextInput ?? true)
|
||||||
|
? e.detail.replaceAll('\n\n', '\n')
|
||||||
|
: e.detail
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@@ -2346,7 +2350,11 @@
|
|||||||
on:submit={async (e) => {
|
on:submit={async (e) => {
|
||||||
if (e.detail) {
|
if (e.detail) {
|
||||||
await tick();
|
await tick();
|
||||||
submitPrompt(e.detail.replaceAll('\n\n', '\n'));
|
submitPrompt(
|
||||||
|
($settings?.richTextInput ?? true)
|
||||||
|
? e.detail.replaceAll('\n\n', '\n')
|
||||||
|
: e.detail
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user