diff --git a/src/UI/Base/FileSelector.svelte b/src/UI/Base/FileSelector.svelte index 17c75f8cc..be48e9b2c 100644 --- a/src/UI/Base/FileSelector.svelte +++ b/src/UI/Base/FileSelector.svelte @@ -1,5 +1,5 @@
{ - drawAttention = false - dispatcher("submit", inputElement.files) - }} - on:dragend={() => { - console.log("Drag end") - drawAttention = false - }} - on:dragenter|preventDefault|stopPropagation={(e) => { - console.log("Dragging enter") - drawAttention = true - e.dataTransfer.drop = "copy" - }} - on:dragstart={() => { - console.log("DragStart") - drawAttention = false - }} - on:drop|preventDefault|stopPropagation={(e) => { - console.log("Got a 'drop'") - drawAttention = false - dispatcher("submit", e.dataTransfer.files) - }} + bind:this={formElement} > @@ -52,7 +72,7 @@ {accept} bind:this={inputElement} class="hidden" - id={"fileinput" + id} + {id} {multiple} name="file-input" type="file" diff --git a/src/UI/BigComponents/SelectedElementView.svelte b/src/UI/BigComponents/SelectedElementView.svelte index 02d3dcd19..4fc37b11d 100644 --- a/src/UI/BigComponents/SelectedElementView.svelte +++ b/src/UI/BigComponents/SelectedElementView.svelte @@ -43,7 +43,7 @@ {:else} -
+
{#each $knownTagRenderings as config (config.id)}