mirror of
https://github.com/open-webui/open-webui
synced 2025-03-27 07:50:37 +00:00
refac
This commit is contained in:
parent
587dab23f0
commit
c5d974606f
@ -15,6 +15,7 @@
|
|||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
await tick();
|
await tick();
|
||||||
if (textareaElement) {
|
if (textareaElement) {
|
||||||
|
await tick();
|
||||||
setTimeout(adjustHeight, 0);
|
setTimeout(adjustHeight, 0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -32,6 +33,7 @@
|
|||||||
bind:value
|
bind:value
|
||||||
{placeholder}
|
{placeholder}
|
||||||
on:input={adjustHeight}
|
on:input={adjustHeight}
|
||||||
|
on:focus={adjustHeight}
|
||||||
class={className}
|
class={className}
|
||||||
{rows}
|
{rows}
|
||||||
{required}
|
{required}
|
||||||
|
Loading…
Reference in New Issue
Block a user