Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 4e27c73

Browse files
committed
fix(menu): update MenuOption defaultValue prop to inner value
1 parent b1d030d commit 4e27c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/chakra-ui-core/src/CMenu/CMenuOption.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ const CMenuOptionGroup = {
176176
type: [String, Number],
177177
default: null
178178
},
179-
defaultValue: [String, Number]
179+
defaultValue: [String, Number, Array]
180180
},
181181
data () {
182182
return {
183-
innerValue: []
183+
innerValue: this.defaultValue || []
184184
}
185185
},
186186
computed: {

0 commit comments

Comments
 (0)