diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-07-07 19:11:58 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-07-07 19:11:58 +0100 |
commit | e354b6d3b58f322255264beff9112c2b59c7881d (patch) | |
tree | 50dd1689a92599feaca7066257cfa1c91fbfc790 /app | |
parent | 9803579e2599cb1e560b5f5a654baab8d485bf11 (diff) | |
download | gitlab-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.vue | 4 |
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> |