Skip to content

Commit

Permalink
Merge pull request #254 from storyblok/feat/int-457-improve-events
Browse files Browse the repository at this point in the history
`INT-457` - fix(int-457): fixing value
  • Loading branch information
emanuelgsouza authored Jul 15, 2022
2 parents 9b4baef + bf4f63d commit fe08d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Pagination/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ const SbPagination = {
handlePreviousPage() {
if (!this.isFirstDisabled) {
this.updateValue(this.value - 1)
this.$emit('on-previous-page', this.value)
this.$emit('on-previous-page', this.value - 1)
}
},
handleNextPage() {
if (!this.isLastDisabled) {
this.updateValue(this.value + 1)
this.$emit('on-next-page', this.value)
this.$emit('on-next-page', this.value + 1)
}
},
onPageChange(page) {
Expand Down

1 comment on commit fe08d6d

@vercel
Copy link

@vercel vercel bot commented on fe08d6d Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.