Commit e354b6d3 authored by Filipa Lacerda's avatar Filipa Lacerda

Use vue .prevent to prevent the click

parent 9803579e
......@@ -46,8 +46,6 @@ export default {
},
methods: {
changePage(e) {
e.preventDefault();
if (e.target.parentElement.classList.contains('disabled')) return;
const text = e.target.innerText;
......@@ -134,7 +132,7 @@ export default {
active: item.active,
disabled: item.disabled
}">
<a @click="changePage($event)">{{item.title}}</a>
<a @click.prevent="changePage($event)">{{item.title}}</a>
</li>
</ul>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment