Skip to content

Commit 19e8250

Browse files
committed
~ Fix reset not announcing change to listeners
1 parent b43a148 commit 19e8250

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/2n8.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ export class TwoAndEight {
5050
const initialValue = Reflect.get(this.#initialState, field)
5151
if (initialValue !== undefined) {
5252
Reflect.set(this, field, initialValue)
53+
this.emitChange()
5354
}
5455
} else {
5556
for (const key of Object.keys(this.#initialState)) {
5657
const initialValue = Reflect.get(this.#initialState, key)
5758
Reflect.set(this, key, initialValue)
59+
this.emitChange()
5860
}
5961
}
6062
}

0 commit comments

Comments
 (0)