default value of maxFiles will be 1 for fileGroup partial
This commit is contained in:
parent
5527532e9a
commit
2709c85564
@ -13,7 +13,12 @@
|
|||||||
class="{{ $attributes['dropzone-class'] }}"
|
class="{{ $attributes['dropzone-class'] }}"
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($attributes['options']))
|
@if (!empty($attributes['options']))
|
||||||
:options={{ json_encode($attributes['options']) }}
|
@if (isset($attributes['options']['maxFiles']))
|
||||||
|
:options={{ json_encode($attributes['options']) }}
|
||||||
|
@else
|
||||||
|
@php $attributes['options']['maxFiles'] = 1 @endphp
|
||||||
|
:options={{ json_encode($attributes['options']) }}
|
||||||
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($attributes['multiple']))
|
@if (!empty($attributes['multiple']))
|
||||||
multiple
|
multiple
|
||||||
|
Loading…
x
Reference in New Issue
Block a user