Fix bug in composed state

This commit is contained in:
Talia 2024-01-24 16:12:22 +01:00
parent 8cca0813d9
commit 515ba550cf
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ class ComposedState extends SimpleState {
const value = this.#func(...this.#states.map(state => state.value))
const change = {property: "value", from: this.value, to: value}
this.value = value
this.dispatchEvent(new ChangeEvent([change]))
this.dispatchEvent(new ChangeEvent(change))
}
}