You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@
48
48
<i>{{ 'dropdown.clear' | translate }}</i>
49
49
</button>
50
50
<buttonclass="dropdown-item collection-item text-truncate" *ngFor="let listEntry of optionsList; let i = index"
51
-
[class.active]="i === selectedIndex"
51
+
[class.active]="inputFormatter(listEntry) === (currentValue | async) || i === selectedIndex"
Copy file name to clipboardExpand all lines: src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.ts
+34-4Lines changed: 34 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,32 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
95
95
});
96
96
}
97
97
98
+
/**
99
+
* Compute the index of the current form value within optionsList.
100
+
* Returns -1 when there is no current value or it cannot be matched.
0 commit comments