@mixd-id/web-scaffold 0.1.230406007 → 0.1.230406008

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406007",
4
+ "version": "0.1.230406008",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -45,7 +45,7 @@ export default{
45
45
 
46
46
  const isArray = Array.isArray(this.modelValue)
47
47
 
48
- if(this.value){
48
+ if(this.value !== undefined){
49
49
  checked = isArray ? this.modelValue.includes(this.value) :
50
50
  this.modelValue === this.value
51
51
  }
@@ -71,7 +71,7 @@ export default{
71
71
 
72
72
  let value
73
73
  if(e.target.checked){
74
- if(this.value) value = this.value
74
+ if(this.value !== undefined) value = this.value
75
75
  else if(this.trueValue) value = this.trueValue
76
76
  else value = true
77
77
 
@@ -82,7 +82,7 @@ export default{
82
82
  }
83
83
  }
84
84
  else{
85
- if(this.value) value = null
85
+ if(this.value !== undefined) value = null
86
86
  else if(this.falseValue) value = this.falseValue
87
87
  else value = false
88
88