mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
fix: textarea input new line issue
This commit is contained in:
parent
d3acb5cbaa
commit
9ff580b8ca
1 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue