Skip to content

Commit b3afb32

Browse files
committed
fix(webapp): restore intentionally cleared form fields after recovery reload
1 parent 79c664a commit b3afb32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/webapp/app/components/StaleAssetRecovery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const script = `(function () {
108108
if (el.type === "checkbox" || el.type === "radio") {
109109
// click() keeps React state in sync with the DOM
110110
if (el.checked !== field.checked) el.click();
111-
} else if (field.value && el.value !== field.value) {
111+
} else if (field.value != null && el.value !== field.value) {
112112
setNativeValue(el, field.value);
113113
el.dispatchEvent(new Event("input", { bubbles: true }));
114114
el.dispatchEvent(new Event("change", { bubbles: true }));

0 commit comments

Comments
 (0)