Skip to content

Commit

Permalink
chore: rollback row cache changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 24, 2023
1 parent 244870d commit f1cace4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -3543,10 +3543,6 @@ if (typeof Slick === "undefined") {
});
}
}

if (!cacheEntry.rowNode) {
cacheEntry.rowNode = [];
}
postProcessedCleanupQueue.push({
actionType: 'R',
groupId: postProcessgroupId,
Expand All @@ -3570,7 +3566,7 @@ if (typeof Slick === "undefined") {

function removeRowFromCache(row) {
var cacheEntry = rowsCache[row];
if (!cacheEntry || !cacheEntry.rowNode) {
if (!cacheEntry) {
return;
}

Expand Down Expand Up @@ -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");
});
Expand Down Expand Up @@ -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");
});
Expand Down

0 comments on commit f1cace4

Please sign in to comment.