app/assets/lookbook/js/nav.js in lookbook-0.4.4 vs app/assets/lookbook/js/nav.js in lookbook-0.4.5

- old
+ new

@@ -20,16 +20,15 @@ this.$refs.shim.style.height = "auto"; this.$dispatch("nav:updated"); }); }, navigate(path) { - if (path instanceof Event) { - path = path.currentTarget.href; - } - history.pushState({}, null, path); - this.$dispatch("popstate"); + this.navigateTo(path instanceof Event ? path.currentTarget.href : path); }, - focusFilter() { + focusFilter($event) { + if ($event.target.tagName === "INPUT") { + return; + } this.currentFocus = this.$refs.filter; setTimeout(() => this.$refs.filter.focus(), 0); }, unfocusFilter() { this.$refs.filter.blur();