Hi all, learning Livewire today and having a few issues. Here’s another.
TL;DR the selected attribute isn’t working even though its definitely being rendered in the right place.
If I do this:
<option value="{{$g->token}}" @if($track->group->token == $g->token) selected @endif>{{$g->name}} </option>
Nothing is selected. However if I change it “disabled” NOTE: changing nothing except what is inside the if statement from “selected” to “disabled” like this
<option value="{{$g->token}}" @if($track->group->token == $g->token) disabled @endif>{{$g->name}} </option>
Then the correct option is disabled.
So the logic if working, the string “selected” is being output in the correct place. It’s just simply not working.