Skip to content

Commit

Permalink
refactor(#452): remove redundant event prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenaramonda committed Oct 16, 2023
1 parent c979223 commit a700f74
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/Pagination/SbPagination.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<div
class="sb-pagination" :class="computedClasses"
>
<div class="sb-pagination" :class="computedClasses">
<template v-if="carousel || compact || hasNextPrevBtn">
<SbPaginationButton
v-if="hasNextPrevBtn"
Expand Down Expand Up @@ -199,13 +197,13 @@ export default {
handlePreviousPage() {
if (!this.isFirstDisabled) {
this.updateValue(this.modelValue - 1)
this.$emit('on-previous-page', this.modelValue - 1)
this.$emit('previous-page', this.modelValue - 1)
}
},
handleNextPage() {
if (!this.isLastDisabled) {
this.updateValue(this.modelValue + 1)
this.$emit('on-next-page', this.modelValue + 1)
this.$emit('next-page', this.modelValue + 1)
}
},
onPageChange(page) {
Expand Down

0 comments on commit a700f74

Please sign in to comment.