diff --git a/resources/views/components/form/select.blade.php b/resources/views/components/form/select.blade.php index c01d4fb7..1a18c557 100644 --- a/resources/views/components/form/select.blade.php +++ b/resources/views/components/form/select.blade.php @@ -66,7 +66,7 @@ @endif @isset($options) - @if($options->count() === 1) + @if(($autoselect ?? FALSE) && $options->count() === 1) $('#{{ $id ?? $name }}') .val('{{ $options->first()['id'] }}') .trigger("change")