From 515ba550cf3b131046772657858881ff133b15bc Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 24 Jan 2024 16:12:22 +0100 Subject: [PATCH] Fix bug in composed state --- state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.js b/state.js index eabfa63..0cd3bd8 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)) } }