diff --git a/state.js b/state.js index 089b3a6..e4d05f8 100644 --- a/state.js +++ b/state.js @@ -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)) } }