From e354b6d3b58f322255264beff9112c2b59c7881d Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 7 Jul 2017 19:11:58 +0100 Subject: Use vue .prevent to prevent the click --- app/assets/javascripts/vue_shared/components/table_pagination.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app') 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 }"> - {{item.title}} + {{item.title}} -- cgit v1.2.1