From 03cb49aea2c305b8d0a5149283bc8d9626c91623 Mon Sep 17 00:00:00 2001 From: Sevan Nerse Date: Thu, 21 Jan 2021 18:28:56 +0300 Subject: [PATCH] maxFiles have to be given to akaunting dropzone component --- resources/views/partials/form/file_group.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/partials/form/file_group.blade.php b/resources/views/partials/form/file_group.blade.php index 333129c3c..512f80528 100644 --- a/resources/views/partials/form/file_group.blade.php +++ b/resources/views/partials/form/file_group.blade.php @@ -19,6 +19,9 @@ @php $attributes['options']['maxFiles'] = 1 @endphp :options={{ json_encode($attributes['options']) }} @endif + @else + @php $attributes['options']['maxFiles'] = 1 @endphp + :options={{ json_encode($attributes['options']) }} @endif @if (!empty($attributes['multiple'])) multiple