Skip to content

Commit

Permalink
fix(vue-pagination): add type attribute to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
devCrossNet committed Oct 2, 2021
1 parent 9163d2c commit 475cb0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/navigation/VuePagination/VuePagination.vue
Expand Up @@ -4,6 +4,7 @@
:class="[infinite === false && selectedPage <= 1 && $style.disabled]"
:aria-label="$t('components.pagination.previous' /* Previous */)"
:disabled="infinite === false && selectedPage <= 1"
type="button"
data-testid="pagination-prev"
@click.prevent.stop="$emit('prev', 1)"
>
Expand All @@ -29,6 +30,7 @@
:class="[infinite === false && selectedPage >= pages && $style.disabled]"
:aria-label="$t('components.pagination.next' /* Next */)"
:disabled="infinite === false && selectedPage >= pages"
type="button"
data-testid="pagination-next"
@click="$emit('next', 1)"
>
Expand Down

0 comments on commit 475cb0b

Please sign in to comment.