Fix bug in composed state

This commit is contained in:
Talia 2024-01-24 16:12:22 +01:00
parent 30f52a05e5
commit 5488f2a49a

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))
}
}