I'm pulling my hair out on this one. Because the use case is so simple, it tells me there's something else happening on the page I'm not able to track down.
Blade is simple:
<select wire:model="options">
<option value="0">Option 0</option>
<option value="1">Option 1</option>
</select>
{{ var_dump($options) }}
The component is simple as well:
public $options;
public function mount()
{
$this->options = '0';
}
Upon page load, Option 0 is selected and my var_dump displays string(1) "0" as expected..
But the moment I change the selection, the dropdown defaults to an empty / blank value.
Both options are still in the list AND my var_dump correctly displays the value of the item I selected. But the selected item doesn't appear as selected.
There are several other livewire components on the same page... all of which seem to be working fine. I've even tried moving this exact code to another (existing) component and the behavior is consistent.
The wiring seems to work but the visuals are out of whack.
What am I missing? Any ideas on where to look next?