Reset state on close

This commit is contained in:
Jiiks 2018-01-20 16:04:22 +02:00
parent 4575c3428a
commit 461d3468a5
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@
animating: false,
first: true
}
},
updated: function () {
if (this.active) return;
this.activeIndex = this.lastActiveIndex = -1;
this.sidebarItems.forEach(item => item.active = false);
}
}
</script>