add event listener first to make sure to catch all events
This commit is contained in:
@@ -46,12 +46,12 @@ export class UmbDefaultCollectionContext<ItemType = any, FilterModelType extends
|
||||
constructor(host: UmbControllerHostElement, config: UmbCollectionConfiguration = { pageSize: 50 }) {
|
||||
super(host);
|
||||
|
||||
this.view = new UmbCollectionViewManager(this, { defaultViewAlias: config.defaultViewAlias });
|
||||
this.#configure(config);
|
||||
|
||||
// listen for page changes on the pagination manager
|
||||
this.pagination.addEventListener(UmbChangeEvent.TYPE, this.#onPageChange);
|
||||
|
||||
this.view = new UmbCollectionViewManager(this, { defaultViewAlias: config.defaultViewAlias });
|
||||
this.#configure(config);
|
||||
|
||||
this.provideContext(UMB_COLLECTION_CONTEXT, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user