app/assets/lookbook/js/components/nav-item.js in lookbook-0.6.1 vs app/assets/lookbook/js/components/nav-item.js in lookbook-0.7.0
- old
+ new
@@ -10,10 +10,12 @@
get active() {
return this.$store.nav.active === this.id;
},
navigate() {
this.setLocation(this.path);
- this.$store.sidebar.open = false;
+ if (this.$store.layout.mobile) {
+ this.$store.sidebar.open = false;
+ }
},
filter(text) {
this.hidden = false;
if (text.length) {
const matched = matchers.map((m) => m.includes(text));