1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Hide the file attachment dropzone when the picker is disabled

This commit is contained in:
Dean 2022-09-21 14:11:04 +01:00
parent 7c412aaa08
commit 14fb43a113

View file

@ -65,6 +65,9 @@
} }
} }
$: showDropzone =
(!maximum || (maximum && value?.length < maximum)) && !disabled
async function processFileList(fileList) { async function processFileList(fileList) {
if ( if (
handleFileTooLarge && handleFileTooLarge &&
@ -211,7 +214,7 @@
{/each} {/each}
{/if} {/if}
{/if} {/if}
{#if !maximum || (maximum && value?.length < maximum)} {#if showDropzone}
<div <div
class="spectrum-Dropzone" class="spectrum-Dropzone"
class:is-invalid={!!error} class:is-invalid={!!error}