Commit 8bae5a79 authored by Hoyt's avatar Hoyt Committed by iamkun

Menu: if defaultIndex value does not exist, the activeIndex value shall be null

parent 0325e1dc
......@@ -139,7 +139,12 @@
}
},
watch: {
defaultActive: 'updateActiveIndex',
defaultActive(value){
if(!this.items[value]){
this.activeIndex = null
}
this.updateActiveIndex(value)
},
defaultOpeneds(value) {
if (!this.collapse) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment