Merge pull request #320 from naturalethic/form-input-event-radio-value

Capture correct radio button value in a form input event
This commit is contained in:
Jon Kelley authored and GitHub committed 2022-03-20 20:10:52 -04:00
commit 41b7de365e
2 files changed
+19 -9

No files matched your search

+2
View File
@@ -20,6 +20,8 @@ fn app(cx: Scope) -> Element {
input { r#type: "text", name: "username" }
input { r#type: "text", name: "full-name" }
input { r#type: "password", name: "password" }
input { r#type: "radio", name: "color", value: "red" }
input { r#type: "radio", name: "color", value: "blue" }
button { r#type: "submit", value: "Submit", "Submit the form" }
}
}