From 7b6719b96d23fd07552fec7bd7716c3d634d9aff Mon Sep 17 00:00:00 2001 From: shpuld Date: Sat, 18 Feb 2017 22:55:16 +0200 Subject: [PATCH] @click on top nav makes window scroll to top --- src/App.js | 3 +++ src/App.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 4b0e81d092..2a00b369cb 100644 --- a/src/App.js +++ b/src/App.js @@ -24,6 +24,9 @@ export default { methods: { activatePanel (panelName) { this.mobileActivePanel = panelName + }, + scrollToTop () { + window.scrollTo(0, 0) } } } diff --git a/src/App.vue b/src/App.vue index d8e1d3e8e6..c4b3cb1366 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,6 @@