Skip to content

Commit 237cb55

Browse files
committed
fix: remove form checkbox-group defaultValue warning#110
1 parent 02860a1 commit 237cb55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/checkbox/Group.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
type: String,
1010
},
1111
defaultValue: {
12-
default: () => [],
12+
default: undefined,
1313
type: Array,
1414
},
1515
value: {
@@ -33,7 +33,7 @@ export default {
3333
data () {
3434
const { value, defaultValue } = this
3535
return {
36-
sValue: value || defaultValue,
36+
sValue: value || defaultValue || [],
3737
}
3838
},
3939
methods: {

0 commit comments

Comments
 (0)