fix: allow uniquely named lists to work with multientry component

This commit is contained in:
alphafetus committed 2026-02-04 22:01:44 -05:00
1 parent 4bf0cdcb39
commit 956c653e28
4 files changed
+31 -10

No files matched your search

+2 -1
View File
@@ -151,6 +151,7 @@ pub fn RadioList(
#[prop(optional, into)] label: String,
#[prop(optional, into)] required: Signal<bool>,
#[prop(optional, into)] other_prompt: Signal<String>,
#[prop(optional, into)] name: Signal<String>
) -> impl IntoView {
//#region Value Logic
@@ -262,7 +263,7 @@ pub fn RadioList(
on_change=on_change
// The actual selected values are tracked by this element, not by the checkboxes themselves.
value=item
name=data_member
name=move || format!("{}_{}", name.get(), data_member.get())
disabled=disabled
/>
}