diff --git a/utils/authors/showAuthors.component.ts b/utils/authors/showAuthors.component.ts index a400b722..be0553ff 100644 --- a/utils/authors/showAuthors.component.ts +++ b/utils/authors/showAuthors.component.ts @@ -170,6 +170,17 @@ export class ShowAuthorsComponent { ngOnInit() {} + ngOnDestroy() { + if(this.orcidDropdown && typeof document !== 'undefined') { + let modal_container = document.getElementById("modal-container"); + modal_container.childNodes.forEach(c=> { + if (c['className'] && c['className'].includes("orcid-dropdown")) { + modal_container.removeChild(c); + } + }); + } + } + public onClick() { if (this.modal) { this.modal.cancel();