web: permit arrays to be sent in custom events without interpolation.
This commit is contained in:
parent
7d37e2155a
commit
cdf5aca378
|
@ -12,7 +12,7 @@ export function CustomEmitterElement<T extends Constructor<LitElement>>(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,
|
||||
|
|
Reference in New Issue