Commit 9f01ee2
0.1.3: clear the model before announcing a make change
Switching make from Volkswagen to Suzuki reported
{make: "suzuki", model: "golf"} — the old model against the new make.
makeChanged() called notify() first and only cleared the dependent select
after the fetch, so onChange consumers wrote a vehicle that does not
exist straight into their form state.
The model select is now emptied BEFORE the announcement, so the reported
value is honest at every instant.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015jjKjr2ajZ4etdoMN6eC6k1 parent 951c090 commit 9f01ee2
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
189 | 196 | | |
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
194 | | - | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
427 | 433 | | |
428 | 434 | | |
429 | 435 | | |
430 | | - | |
| 436 | + | |
431 | 437 | | |
432 | 438 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments