{ drawAttention = false; dispatcher("submit", inputElement.files)}} on:dragend={ () => {drawAttention = false}} on:dragover|preventDefault|stopPropagation={(e) => { console.log("Dragging over!") drawAttention = true e.dataTransfer.drop = "copy" }} on:dragstart={ () => {drawAttention = false}} on:drop|preventDefault|stopPropagation={(e) => { console.log("Got a 'drop'") drawAttention = false dispatcher("submit", e.dataTransfer.files) }} type="file" >