Fix issue with nested grids

This commit is contained in:
Andrew Kingston 2024-08-01 12:22:01 +01:00
parent 1eedb9241b
commit 61e24d18bc
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export const isGridChild = node => {
// Gets the component ID of the closest parent grid // Gets the component ID of the closest parent grid
export const getGridParentID = node => { export const getGridParentID = node => {
return node?.closest(".grid")?.parentNode.dataset.id return node?.parentNode?.closest(".grid")?.parentNode.dataset.id
} }
// Generates the base set of grid CSS vars from a component definition // Generates the base set of grid CSS vars from a component definition