fix: allow uniquely named lists to work with multientry component
This commit is contained in:
1 parent
4bf0cdcb39
commit
956c653e28
4 files changed
+31
-10
No files matched your search
@@ -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
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user