Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Oct 11, 2023
1 parent b460b8b commit 1e508e0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/grid/src/vaadin-grid-column-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,12 +657,11 @@ export const ColumnBaseMixin = (superClass) =>
{ cell: footerCell, partName: footerPartName },
].forEach(({ cell, partName }) => {
if (cell) {
const currentName = '__currentPartName';
const currentPartNames = cell[currentName] || [];
cell.part.remove(...currentPartNames);
const customParts = cell.__customParts || [];
cell.part.remove(...customParts);

cell[currentName] = partName ? partName.trim().split(' ') : [];
cell.part.add(...cell[currentName]);
cell.__customParts = partName ? partName.trim().split(' ') : [];
cell.part.add(...cell.__customParts);
}
});
}
Expand Down

0 comments on commit 1e508e0

Please sign in to comment.