Skip to content

Commit

Permalink
Merge pull request getkirby#4232 from getkirby/fix/4231-droppable-fil…
Browse files Browse the repository at this point in the history
…es-field

Fix droppable files files when disabled
  • Loading branch information
bastianallgeier authored Mar 28, 2022
2 parents 8437921 + 54e5e97 commit bd50d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/src/components/Forms/Field/FilesField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</k-button-group>
</template>

<k-dropzone :disabled="more === false" @drop="drop">
<k-dropzone :disabled="!moreUpload" @drop="drop">
<template v-if="selected.length">
<k-items
:items="selected"
Expand Down Expand Up @@ -56,7 +56,7 @@ export default {
},
computed: {
moreUpload() {
return this.more && this.uploads;
return !this.disabled && this.more && this.uploads;
},
options() {
if (this.uploads) {
Expand Down

0 comments on commit bd50d10

Please sign in to comment.