Fix potential undefined reference
This commit is contained in:
parent
0252b02406
commit
916a7983d8
|
@ -49,7 +49,7 @@ export const getGridVar = (device, param) => `--grid-${device}-${param}`
|
||||||
// Determines whether a JS event originated from immediately within a grid
|
// Determines whether a JS event originated from immediately within a grid
|
||||||
export const isGridEvent = e => {
|
export const isGridEvent = e => {
|
||||||
return (
|
return (
|
||||||
e.target.dataset.indicator === "true" ||
|
e.target.dataset?.indicator === "true" ||
|
||||||
e.target
|
e.target
|
||||||
.closest?.(".component")
|
.closest?.(".component")
|
||||||
?.parentNode.closest(".component")
|
?.parentNode.closest(".component")
|
||||||
|
|
Loading…
Reference in New Issue