mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 23:02:25 +00:00
fix: textarea input new line issue
This commit is contained in:
parent
d3acb5cbaa
commit
9ff580b8ca
@ -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 New Issue
Block a user