Fix potential undefined reference

This commit is contained in:
Andrew Kingston 2024-08-15 11:38:11 +01:00
parent 0252b02406
commit 916a7983d8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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")