Reset state on close
This commit is contained in:
parent
4575c3428a
commit
461d3468a5
|
@ -63,6 +63,11 @@
|
||||||
animating: false,
|
animating: false,
|
||||||
first: true
|
first: true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
updated: function () {
|
||||||
|
if (this.active) return;
|
||||||
|
this.activeIndex = this.lastActiveIndex = -1;
|
||||||
|
this.sidebarItems.forEach(item => item.active = false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue