diff --git a/compliance-dashboard/src/pages/targets.rs b/compliance-dashboard/src/pages/targets.rs index bd88018..ba1a1bb 100644 --- a/compliance-dashboard/src/pages/targets.rs +++ b/compliance-dashboard/src/pages/targets.rs @@ -232,7 +232,7 @@ pub fn TargetsPage() -> Element { value: "{edit_type}", oninput: move |e| edit_type.set(e.value()), for (v, l) in TARGET_TYPES.iter().copied() { - option { value: "{v}", "{l}" } + option { value: "{v}", selected: edit_type() == v, "{l}" } } } } @@ -257,7 +257,7 @@ pub fn TargetsPage() -> Element { value: "{e_kind}", oninput: move |e| e_kind.set(e.value()), for (v, l) in ARTIFACT_KINDS.iter().copied() { - option { value: "{v}", "{l}" } + option { value: "{v}", selected: e_kind() == v, "{l}" } } } }