Enhancement: use stable unique IDs for custom field select options (#8299)

This commit is contained in:
shamoon authored and GitHub committed 2024-12-02 04:15:38 +00:00
1 parent 00485138f9
commit 0fc1860d4c
24 files changed
+494 -101

No files matched your search

@@ -34,11 +34,6 @@ export class SelectComponent extends AbstractInputComponent<number> {
if (items && this.value) this.checkForPrivateItems(this.value)
}
@Input()
set itemsArray(items: any[]) {
this._items = items.map((item, index) => ({ id: index, name: item }))
}
writeValue(newValue: any): void {
if (newValue && this._items) {
this.checkForPrivateItems(newValue)