Weaken comparsion so string and int keys match

This commit is contained in:
Marcus Moore 2025-01-13 15:38:45 -08:00
parent 1f4cc0a4b4
commit bc3f236b86
No known key found for this signature in database

View file

@ -17,7 +17,7 @@
{{-- map the simple key => value pairs when nothing is passed in via the slot --}} {{-- map the simple key => value pairs when nothing is passed in via the slot --}}
@if($slot->isEmpty()) @if($slot->isEmpty())
@foreach($options as $key => $value) @foreach($options as $key => $value)
<option value="{{ $key }}" @selected($selected === $key)>{{ $value }}</option> <option value="{{ $key }}" @selected($selected == $key)>{{ $value }}</option>
@endforeach @endforeach
@else @else
{{ $slot }} {{ $slot }}