From ce5c31a67f294e40693da5ced0aab5a536efe418 Mon Sep 17 00:00:00 2001 From: Alex Barnsley <8069294+alexbarnsley@users.noreply.github.com> Date: Fri, 13 Oct 2023 02:30:54 +0100 Subject: [PATCH] default value for select class --- resources/views/inputs/select.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/inputs/select.blade.php b/resources/views/inputs/select.blade.php index fce91b5e..46df6bc1 100644 --- a/resources/views/inputs/select.blade.php +++ b/resources/views/inputs/select.blade.php @@ -19,7 +19,7 @@ @class([ 'form-select block w-full pl-4 pr-8 py-3', 'border-theme-danger-500 focus:border-theme-danger-300 focus:ring focus:ring-theme-danger-300' => $errors->has($name), - $selectClass, + $selectClass ?? null, ]) @if(! isset($noModel)) wire:model="{{ $model ?? $name }}" @endif @if($onChange ?? false) x-on:change="{{ $onChange }}" @endif