From 6c88bc9d31db0ca10180357e2d281b89a9ce6f0e Mon Sep 17 00:00:00 2001 From: Alyar <> Date: Tue, 15 Oct 2024 18:00:16 +0400 Subject: [PATCH] Fix tests (part 4) --- .../js/__internal/grids/grid_core/sticky_columns/utils.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/devextreme/js/__internal/grids/grid_core/sticky_columns/utils.ts b/packages/devextreme/js/__internal/grids/grid_core/sticky_columns/utils.ts index 5bf00fe868be..11c2d3c928dd 100644 --- a/packages/devextreme/js/__internal/grids/grid_core/sticky_columns/utils.ts +++ b/packages/devextreme/js/__internal/grids/grid_core/sticky_columns/utils.ts @@ -199,14 +199,12 @@ export const prevColumnIsFixed = function ( isDataColumn = false, ): boolean { const visibleColumns = that.getVisibleColumns(isDataColumn ? null : rowIndex); - const parentColumn = !isDataColumn && that.getParentColumn(column); + const parentColumn = that.getParentColumn(column); if (parentColumn) { const isFirstColumn = that.isFirstColumn(column, rowIndex, true); - if (isFirstColumn) { - return prevColumnIsFixedCore(that, parentColumn, that.getVisibleColumns(0), 0); - } + return isFirstColumn && prevColumnIsFixedCore(that, parentColumn, that.getVisibleColumns(0), 0); } return prevColumnIsFixedCore(that, column, visibleColumns, rowIndex);