Revert grid row height to default when unsetting prop

This commit is contained in:
Andrew Kingston 2023-06-19 17:42:33 +01:00
parent c03e64699d
commit 030b767d1b
1 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,8 @@ export const initialise = context => {
initialRowHeight.subscribe(height => {
if (height) {
rowHeight.set(height)
} else {
rowHeight.set(get(table)?.rowHeight || DefaultRowHeight)
}
})
}