try to fix radio button check (#924)

This commit is contained in:
LawyZheng
2024-10-09 00:55:34 +08:00
committed by GitHub
parent 157628d068
commit 47f2c5926a

View File

@@ -843,11 +843,7 @@ function buildElementObject(frame, element, interactable, purgeable = false) {
}
if (elementTagNameLower === "input" || elementTagNameLower === "textarea") {
if (element.type === "radio") {
attrs["value"] = "" + element.checked + "";
} else {
attrs["value"] = element.value;
}
attrs["value"] = element.value;
}
let elementObj = {