Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
Remove workaround from rigor789/vue-scrollto#243
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro committed Apr 13, 2020
1 parent 5bc1833 commit 832eef3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions nuxt/components/TheFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
:href="link.href"
:target="link.href.startsWith('#')? '' : '_blank'"
class="no-underline hover:underline text-gray-800 hover:text-orange-500"
@click="(e) => linkClick(e, link.scrollTo)"
v-scroll-to="link.scrollTo"
>{{ link.text }}</a>
</li>
</ul>
Expand Down Expand Up @@ -92,13 +92,5 @@ export default {
return links;
},
},
methods: {
linkClick(e, scrollTo) {
if (scrollTo) {
e.preventDefault();
this.$scrollTo(scrollTo);
}
},
},
};
</script>
2 changes: 1 addition & 1 deletion nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@nuxtjs/svg": "^0.1.6",
"axios": "^0.19.2",
"nuxt": "^2.11.0",
"vue-scrollto": "^2.17.1"
"vue-scrollto": "^2.18.0"
},
"devDependencies": {
"@babel/core": "^7.8.7",
Expand Down
2 changes: 1 addition & 1 deletion nuxt/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10115,7 +10115,7 @@ vue-router@^3.1.6:
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.1.6.tgz#45f5a3a3843e31702c061dd829393554e4328f89"
integrity sha512-GYhn2ynaZlysZMkFE5oCHRUTqE8BWs/a9YbKpNLi0i7xD6KG1EzDqpHQmv1F5gXjr8kL5iIVS8EOtRaVUEXTqA==

vue-scrollto@^2.17.1:
vue-scrollto@^2.18.0:
version "2.18.0"
resolved "https://registry.yarnpkg.com/vue-scrollto/-/vue-scrollto-2.18.0.tgz#8d4646b764c0bf3a8a4b59bd2705bd853dbe095a"
integrity sha512-XTVuw7ZMV8r+nNdzxel1uHKM2n0TOAq4H4FZUr9TqLMyyZYK1QVsBdCB9J5KiqabiyP41nxgvNlR9gf+6y2mJw==
Expand Down

0 comments on commit 832eef3

Please sign in to comment.