Fix bug in composed state

This commit is contained in:
Talia 2024-01-24 16:12:22 +01:00
parent 8cca0813d9
commit 515ba550cf

View file

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