diff --git a/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip b/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip index 96a9fa06c..7c322db61 100644 Binary files a/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip and b/packages/vanilla-bundle/dist-grid-bundle-zip/slickgrid-vanilla-bundle.zip differ diff --git a/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts b/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts index 8bb7cba5e..fb35aa0d6 100644 --- a/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts +++ b/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts @@ -558,9 +558,6 @@ export class SlickVanillaGridBundle { this.sharedService.dataView = this.dataView; this.sharedService.slickGrid = this.slickGrid; - // load the resizer service - this.resizerService.init(this.slickGrid, this._gridParentContainerElm); - this.extensionService.bindDifferentExtensions(); this.bindDifferentHooks(this.slickGrid, this._gridOptions, this.dataView); this._slickgridInitialized = true; @@ -577,6 +574,10 @@ export class SlickVanillaGridBundle { // initialize the SlickGrid grid this.slickGrid.init(); + // initialized the resizer service only after SlickGrid is initialized + // if we don't we end up binding our resize to a grid element that doesn't yet exist in the DOM and the resizer service will fail silently (because it has a try/catch that unbinds the resize without throwing back) + this.resizerService.init(this.slickGrid, this._gridParentContainerElm); + // user could show a custom footer with the data metrics (dataset length and last updated timestamp) if (!this.gridOptions.enablePagination && this.gridOptions.showCustomFooter && this.gridOptions.customFooterOptions) { this.slickFooter = new SlickFooterComponent(this.slickGrid, this.gridOptions.customFooterOptions, this.translaterService);