From cdf5aca378b36e0efa7ebf91eb29e0151fb9a822 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Mon, 2 Oct 2023 12:34:32 -0700 Subject: [PATCH] web: permit arrays to be sent in custom events without interpolation. --- web/src/elements/utils/eventEmitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/elements/utils/eventEmitter.ts b/web/src/elements/utils/eventEmitter.ts index 9a4d421ef..54b472825 100644 --- a/web/src/elements/utils/eventEmitter.ts +++ b/web/src/elements/utils/eventEmitter.ts @@ -12,7 +12,7 @@ export function CustomEmitterElement>(supercla // eslint-disable-next-line @typescript-eslint/no-explicit-any dispatchCustomEvent(eventName: string, detail: any = {}, options = {}) { const fullDetail = - typeof detail === "object" + typeof detail === "object" && !Array.isArray(detail) ? { target: this, ...detail,