web: permit arrays to be sent in custom events without interpolation.

This commit is contained in:
Ken Sternberg 2023-10-02 12:34:32 -07:00
parent 7d37e2155a
commit cdf5aca378
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export function CustomEmitterElement<T extends Constructor<LitElement>>(supercla
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
dispatchCustomEvent(eventName: string, detail: any = {}, options = {}) { dispatchCustomEvent(eventName: string, detail: any = {}, options = {}) {
const fullDetail = const fullDetail =
typeof detail === "object" typeof detail === "object" && !Array.isArray(detail)
? { ? {
target: this, target: this,
...detail, ...detail,