Skip to content

Commit

Permalink
Update select.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-rahimi committed Feb 2, 2024
1 parent 9993e56 commit dee094c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/form/components/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class="form-select {{ implode(' ', $input->classes) }} @error($input->name) is-i
@foreach ($input->options as $option)
<option
value="{{ $option->value ?? '' }}"
{{ $option->selected ? 'selected' : '' }}
{{ ($option->selected || $input?->value == $option?->value) ? 'selected' : '' }}
{{ $option->disabled ? 'disabled' : '' }}
>
{{ $option->label }}
Expand Down

0 comments on commit dee094c

Please sign in to comment.