mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
105265: Made the DsDynamicListComponent's checkbox & radio buttons ids unique for each metadata field to prevent other value-pairs having the same id
This commit is contained in:
@@ -128,7 +128,7 @@ export class DsDynamicListComponent extends DynamicFormControlComponent implemen
|
|||||||
(v) => v.value === option.value));
|
(v) => v.value === option.value));
|
||||||
|
|
||||||
const item: ListItem = {
|
const item: ListItem = {
|
||||||
id: value,
|
id: `${this.model.id}_${value}`,
|
||||||
label: option.display,
|
label: option.display,
|
||||||
value: checked,
|
value: checked,
|
||||||
index: key
|
index: key
|
||||||
|
Reference in New Issue
Block a user