From 52e6b0ce56b0d7d8c0422fee255767ca0e3db29e Mon Sep 17 00:00:00 2001 From: Damla Demir Date: Thu, 13 Oct 2022 12:14:03 +0300 Subject: [PATCH] fix(pagination): totalItems change control added (#279) --- src/components/pagination/bl-pagination.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/pagination/bl-pagination.ts b/src/components/pagination/bl-pagination.ts index 9d5f73a2..59688c32 100644 --- a/src/components/pagination/bl-pagination.ts +++ b/src/components/pagination/bl-pagination.ts @@ -93,7 +93,7 @@ export default class BlPagination extends LitElement { @event('bl-change') private onChange: EventDispatcher<{ selectedPage: number; prevPage: number }>; updated(changedProperties: PropertyValues) { - if (changedProperties.has('currentPage') || changedProperties.has('itemsPerPage')) { + if (changedProperties.has('currentPage') || changedProperties.has('itemsPerPage') || changedProperties.has('totalItems') ) { this._paginate(); this.onChange({ selectedPage: this.currentPage,