diff --git a/src/lib/components/AutoGrowTextArea.svelte b/src/lib/components/AutoGrowTextArea.svelte index 4a0d12f..20454cc 100644 --- a/src/lib/components/AutoGrowTextArea.svelte +++ b/src/lib/components/AutoGrowTextArea.svelte @@ -193,7 +193,7 @@ }; -
+
+ {#if value === ""} + + { + if ( + event.currentTarget.files && + event.currentTarget.files.length > 0 + ) { + imageHandler?.(event.currentTarget.files[0]); + } + }} + id="media-upload" + type="file" + accept="image/*" + /> + {/if} {#if curemojiresults !== null && curemojinumber !== null}
{#each curemojiresults[0] as result, idx} @@ -226,6 +244,18 @@