Skip to content

Commit

Permalink
fix(pagination): totalItems change control added (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamlaDemir authored Oct 13, 2022
1 parent 87a458a commit 52e6b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/pagination/bl-pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class BlPagination extends LitElement {
@event('bl-change') private onChange: EventDispatcher<{ selectedPage: number; prevPage: number }>;

updated(changedProperties: PropertyValues<this>) {
if (changedProperties.has('currentPage') || changedProperties.has('itemsPerPage')) {
if (changedProperties.has('currentPage') || changedProperties.has('itemsPerPage') || changedProperties.has('totalItems') ) {
this._paginate();
this.onChange({
selectedPage: this.currentPage,
Expand Down

0 comments on commit 52e6b0c

Please sign in to comment.