app/components/lookbook/nav/item/component.js in lookbook-2.3.0 vs app/components/lookbook/nav/item/component.js in lookbook-2.3.2

- old
+ new

@@ -4,29 +4,27 @@ ); return { filteredOut: false, + active: false, + get open() { return this.isCollection && this.isOpen(id); }, - get active() { - if (this.$refs.link) { - return ( - this.location && - this.location.pathname === this.$refs.link.getAttribute("href") - ); - } - return false; - }, - get children() { return this.$refs.items ? Array.from(this.$refs.items.children) : []; }, get isCollection() { return !this.$refs.link; + }, + + checkActive() { + this.active = + this.$refs.link && + window.location.pathname === this.$refs.link.getAttribute("href"); }, toggle() { this.toggleOpen(id); },