Skip to content

Commit

Permalink
🚑 Fix selected option
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Aug 10, 2023
1 parent c118638 commit 69191eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to [Sikessem's UI kit](https://github.com/sikessem/ui) will

## [v0.6.3](https://github.com/sikessem/ui/releases/tag/v0.6.3) - 2023-08-10

- [0.x] Fix selected option
- [0.x] Fix select option keys
- [0.x] Improve handling of component aliases
- [0.x] Fix select value
Expand Down
2 changes: 1 addition & 1 deletion res/views/components/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@endforeach
@endtag
@else
@tag('option', ['value' => $label, 'selected' => isset($value) && $label], $option)
@tag('option', ['value' => $label, 'selected' => isset($value) && $value === $label], $option)
@endif
@endforeach
{{ $slot }}
Expand Down

0 comments on commit 69191eb

Please sign in to comment.