You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Antikode
authored and
Antikode
committed
fix: fill-form dropdown skip-check can't distinguish placeholder from a real blank-value PDF option
The write-back skip logic compared only el.value against initialValue, but a
PDF dropdown option whose own value is "" is indistinguishable from the
synthetic "(unset)" placeholder via .value alone (both are ""). This silently
discarded a user's explicit selection of that real blank option whenever the
PDF had no prior selection -- reintroducing the exact bug #299 fixed, via
#326's switch from a selectedIndex-based check to a value-based one.
Fixed by tracking "PDF had no selection" as undefined (distinct from a real ""
value) in both renderFields() and fillForm(), and using selectedIndex === 0
only to detect the untouched-placeholder case.
0 commit comments