Skip to content

Commit

Permalink
Merged in DSC-1226 (pull request DSpace#886)
Browse files Browse the repository at this point in the history
[DSC-1226] set this.model.metadataValue as currentValue if present on init in dynamic-scrollable-dropdown.component.ts
  • Loading branch information
Yevhenii-Lohatskyi authored and corrad82-4s committed Oct 6, 2023
2 parents d9c4cbe + 0b9ea44 commit 19dec25
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
* Initialize the component, setting up the init form value
*/
ngOnInit() {
if (this.model.metadataValue) {
this.setCurrentValue(this.model.metadataValue, true);
}

this.updatePageInfo(this.model.maxOptions, 1);
this.retrieveEntries(null, true);

Expand Down

0 comments on commit 19dec25

Please sign in to comment.