From 788b75db749c3e5696624d4840f2f22bd6b94ad2 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Mon, 23 Oct 2023 20:39:28 -0400 Subject: [PATCH] chore: rollback row cache changes --- slick.grid.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/slick.grid.js b/slick.grid.js index ab613bb35..ebc20d1ad 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -3543,10 +3543,6 @@ if (typeof Slick === "undefined") { }); } } - - if (!cacheEntry.rowNode) { - cacheEntry.rowNode = []; - } postProcessedCleanupQueue.push({ actionType: 'R', groupId: postProcessgroupId, @@ -3570,7 +3566,7 @@ if (typeof Slick === "undefined") { function removeRowFromCache(row) { var cacheEntry = rowsCache[row]; - if (!cacheEntry || !cacheEntry.rowNode) { + if (!cacheEntry) { return; } @@ -5117,7 +5113,7 @@ if (typeof Slick === "undefined") { if (activeCellNode !== null) { makeActiveCellNormal(); activeCellNode.classList.remove("active"); - if (rowsCache[activeRow] && rowsCache[activeRow].rowNode) { + if (rowsCache[activeRow]) { rowsCache[activeRow].rowNode.forEach(function (node) { node.classList.remove("active"); }); @@ -5150,7 +5146,7 @@ if (typeof Slick === "undefined") { if (options.showCellSelection) { activeCellNode.classList.add("active"); - if (rowsCache[activeRow] && rowsCache[activeRow].rowNode) { + if (rowsCache[activeRow]) { rowsCache[activeRow].rowNode.forEach(function (node) { node.classList.add("active"); });