Weaken comparsion so string and int keys match
This commit is contained in:
parent
1f4cc0a4b4
commit
bc3f236b86
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue