Commit 8933fb2
fix: fill-form.js optionlist fields silently discarded an explicit clear-all-selections action
Skip-if-untouched guard checked `selected.length === 0` unconditionally, which
also fired when a user explicitly deselected every option in a field that DID
start with a PDF-authored selection (indistinguishable from an untouched field
once nothing remains selected). The pre-existing `unchanged` comparison
already correctly handles the untouched case (including both-empty), so the
redundant length check only ever caused harm. Same bug class as #330's
dropdown fix, applied to optionlist fields.1 parent d2745aa commit 8933fb2
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
358 | 363 | | |
359 | 364 | | |
360 | 365 | | |
| |||
0 commit comments