Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Oct 30, 2024
2 parents 624deeb + 2733898 commit 0031bc4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [3.0.6](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v3.0.5...v3.0.6) (2024-10-25)


### Bug Fixes

* made default value allow multiple checked ([5365719](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/53657196aa7bd7f490a3ca971230bdca3a029211))

## [3.0.5](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v3.0.4...v3.0.5) (2024-09-24)


Expand Down
2 changes: 1 addition & 1 deletion composables/useLimboForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function setFieldDefaults(fields, options) {
field.defaultValue =
'value' in field
? field.value
: (field.items?.find((item) => item.checked)?.value ??
: (field.items?.filter((item) => item.checked)?.map?.(item => item.value)?.join?.(',') ??
field.items?.find((item) => !item.value)?.value);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@limbo-works/nuxt-core",
"type": "module",
"version": "3.0.5",
"version": "3.0.6",
"main": "./nuxt.config.js",
"scripts": {
"dev": "nuxi prepare & nuxi dev .playground",
Expand Down

0 comments on commit 0031bc4

Please sign in to comment.