summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-07-07 19:11:58 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-07-07 19:11:58 +0100
commite354b6d3b58f322255264beff9112c2b59c7881d (patch)
tree50dd1689a92599feaca7066257cfa1c91fbfc790 /app
parent9803579e2599cb1e560b5f5a654baab8d485bf11 (diff)
downloadgitlab-ce-e354b6d3b58f322255264beff9112c2b59c7881d.tar.gz
Use vue .prevent to prevent the click
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/vue_shared/components/table_pagination.vue4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_shared/components/table_pagination.vue b/app/assets/javascripts/vue_shared/components/table_pagination.vue
index 1d1b66cf4e6..6effa7a8b71 100644
--- a/app/assets/javascripts/vue_shared/components/table_pagination.vue
+++ b/app/assets/javascripts/vue_shared/components/table_pagination.vue
@@ -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>