Fix bug in composed state
This commit is contained in:
parent
8cca0813d9
commit
515ba550cf
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