1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Fix nested grids not laying out properly

This commit is contained in:
Andrew Kingston 2024-08-01 12:09:44 +01:00
parent 64c182df0f
commit 1eedb9241b
No known key found for this signature in database

View file

@ -58,10 +58,6 @@ export const isGridEvent = e => {
// Determines whether a DOM element is an immediate child of a grid
export const isGridChild = node => {
// Ignore grid itself
if (node?.classList?.contains("grid")) {
return false
}
return node
?.closest(".component")
?.parentNode.closest(".component")