Fix bug in composed state
This commit is contained in:
parent
30f52a05e5
commit
5488f2a49a
1 changed files with 1 additions and 1 deletions
2
state.js
2
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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue