Skip to content

Commit

Permalink
default value for select class
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley committed Oct 13, 2023
1 parent e6a80ee commit ce5c31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/inputs/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce5c31a

Please sign in to comment.