{ 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) }} >
{console.log("Clicked", inputElement); inputElement.click()}}>