Merge pull request #7876 from Budibase/fix/hide-disabled-attachment-dropzone

Fix/hide disabled attachment dropzone
This commit is contained in:
deanhannigan 2022-09-22 09:01:16 +01:00 committed by GitHub
commit db34acde99
1 changed files with 4 additions and 1 deletions

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}