Skip to content

Commit

Permalink
fix: remove form checkbox-group defaultValue warning#110
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Aug 9, 2018
1 parent b908088 commit ff35898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/checkbox/Group.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
type: String,
},
defaultValue: {
default: () => [],
default: undefined,
type: Array,
},
value: {
Expand All @@ -33,7 +33,7 @@ export default {
data () {
const { value, defaultValue } = this
return {
sValue: value || defaultValue,
sValue: value || defaultValue || [],
}
},
methods: {
Expand Down

2 comments on commit ff35898

@tangjinzhou
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nabaonan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,这个会在下一个版更新吧

Please sign in to comment.