Skip to content

Commit

Permalink
Merge pull request #3 from CodeWithDennis/main
Browse files Browse the repository at this point in the history
Fix icon not visible for boolean fields
  • Loading branch information
199ocero authored Jan 2, 2024
2 parents aa00990 + 4b3d4bb commit 7aab6df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to `radio-deck` will be documented in this file.

## Version 1.1.0: Added Support for Custom Colors and Code Cleanup - 2024-01-01

Clean up some files, remove unnecessary variables and also make some minor performance nice tip thanks to @ralphjsmit at discord. This release also supports the custom color that will be visible to card ring and icons.

### What's Changed

* Cleanup files by @CodeWithDennis in https://github.com/199ocero/radio-deck/pull/1

### New Contributors

* @CodeWithDennis made their first contribution in https://github.com/199ocero/radio-deck/pull/1

**Full Changelog**: https://github.com/199ocero/radio-deck/compare/v1.0.0-beta...v1.1.0

## v1.0.0-beta - 2023-12-28

First beta release
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Components/RadioDeck.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function icons(array|Closure|null $icons): static
*/
public function hasIcons($value): bool
{
if ($value && ! empty($this->getIcons())) {
if ($value !== null && ! empty($this->getIcons())) {
return array_key_exists($value, $this->getIcons());
}

Expand Down

0 comments on commit 7aab6df

Please sign in to comment.