From 5488f2a49a9e74d69f8abf2ebd3f0fb0cd8c1c34 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 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)) } }