We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55da942 commit fdbd0f4Copy full SHA for fdbd0f4
pgml-dashboard/src/components/inputs/radio/mod.rs
@@ -24,8 +24,8 @@ impl RadioOption {
24
}
25
26
27
- pub fn checked(mut self) -> Self {
28
- self.checked = true;
+ pub fn checked(mut self, checked: bool) -> Self {
+ self.checked = checked;
29
self
30
31
@@ -53,7 +53,7 @@ impl Default for Radio {
53
"test-radio",
54
&[
55
RadioOption::new("Enabled (recommended)".into(), 1),
56
- RadioOption::new("Disabled".into(), 0).checked(),
+ RadioOption::new("Disabled".into(), 0).checked(true),
57
],
58
)
59
0 commit comments