livewire select placeholder proper method

My select works but does not display the placehold On a Filament Page my view looks like this:
State
<x-filament::input.wrapper>
<x-filament::input.select
wire:model="stateId"
wire:change="stateSelectChange"
>
<option disabled value="">Select a state...</option>
@foreach ($this->stateOptions as $key => $value )
<div wire:key="{{ $key }}">
<option value="{{ $key }}">{{ $value }}</option>
</div>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>
State
<x-filament::input.wrapper>
<x-filament::input.select
wire:model="stateId"
wire:change="stateSelectChange"
>
<option disabled value="">Select a state...</option>
@foreach ($this->stateOptions as $key => $value )
<div wire:key="{{ $key }}">
<option value="{{ $key }}">{{ $value }}</option>
</div>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>
Solution:
I see that I left in the disabled in the placeholder option
Jump to solution
1 Reply
Solution
ddoddsr
ddoddsr2mo ago
I see that I left in the disabled in the placeholder option

Did you find this page helpful?