Skip to content

Commit

Permalink
Fix addGridLayout bug when this plugin is combined with addHiddenColu…
Browse files Browse the repository at this point in the history
…mns plugin bryanmylee#179
  • Loading branch information
stephane-klein committed Dec 22, 2023
1 parent c60dd00 commit 0cea8b7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/lib/plugins/addGridLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@ export const addGridLayout =
return { attrs };
},
'thead.tr.th': (cell) => {
const attrs = derived([], () => {
return {
style: {
'grid-column': `${cell.colstart + 1} / span ${cell.colspan}`,
},
};
});
return { attrs };
return {
style: {
'grid-column': `${cell.colstart + 1} / span ${cell.colspan}`,
},
};
},
'tbody.tr': () => {
const attrs = derived([], () => {
Expand Down

0 comments on commit 0cea8b7

Please sign in to comment.