Scroll back to top between onboarding steps. Fix #27.

This commit is contained in:
Lucas Verney 2018-08-02 10:21:30 +02:00
parent 194c4cf3d7
commit 530184a817
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ export default {
this.$router.push({ name: 'Map' });
},
},
watch: {
step() {
window.scrollTo(0, 0);
},
},
};
</script>