Fix paste handler (#3038)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-21 13:43:01 +06:00 committed by GitHub
parent 43713dd508
commit cb8996fc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -246,9 +246,7 @@
}
</script>
<svelte:window on:paste={pasteAction} />
<div bind:this={refContainer}>
<div bind:this={refContainer} on:paste={pasteAction}>
<input
bind:this={inputFile}
multiple

View File

@ -298,8 +298,6 @@
}
</script>
<svelte:window on:paste={(ev) => (fakeAttach === 'normal' ? pasteAction(ev) : undefined)} />
<input
bind:this={inputFile}
multiple
@ -312,6 +310,7 @@
<div
class="flex-col clear-mins"
on:paste={(ev) => (fakeAttach === 'normal' ? pasteAction(ev) : undefined)}
on:dragover|preventDefault={() => {}}
on:dragleave={() => {}}
on:drop|preventDefault|stopPropagation={(ev) => {