There was an error while loading. Please reload this page.
1 parent 79c664a commit b3afb32Copy full SHA for b3afb32
1 file changed
apps/webapp/app/components/StaleAssetRecovery.tsx
@@ -108,7 +108,7 @@ const script = `(function () {
108
if (el.type === "checkbox" || el.type === "radio") {
109
// click() keeps React state in sync with the DOM
110
if (el.checked !== field.checked) el.click();
111
- } else if (field.value && el.value !== field.value) {
+ } else if (field.value != null && el.value !== field.value) {
112
setNativeValue(el, field.value);
113
el.dispatchEvent(new Event("input", { bubbles: true }));
114
el.dispatchEvent(new Event("change", { bubbles: true }));
0 commit comments