mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-26 13:01:48 +03:00
Fix paste handler (#3038)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
43713dd508
commit
cb8996fc1f
@ -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
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user