diff --git a/packages/common/src/extensions/gridMenuExtension.ts b/packages/common/src/extensions/gridMenuExtension.ts index c3958913e..50761d15a 100644 --- a/packages/common/src/extensions/gridMenuExtension.ts +++ b/packages/common/src/extensions/gridMenuExtension.ts @@ -397,7 +397,10 @@ export class GridMenuExtension implements Extension { case 'clear-frozen-columns': const visibleColumns = [...this.sharedService.visibleColumns]; this.sharedService.slickGrid.setOptions({ frozenColumn: -1, enableMouseWheelScrollHandler: false }); - if (Array.isArray(visibleColumns) && Array.isArray(this.sharedService.allColumns) && visibleColumns.length !== this.sharedService.allColumns.length) { + + // SlickGrid seems to be somehow resetting the columns to their original positions, + // so let's re-fix them to the position we kept as reference + if (Array.isArray(visibleColumns)) { this.sharedService.slickGrid.setColumns(visibleColumns); } break; 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 d3586034e..719b4c821 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