From 446280b59a65c8c0ce24a796ffd14b5eef6eafd0 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Sat, 22 Jun 2024 17:32:34 +0200 Subject: [PATCH] Fixed search facet deadlock Also fixed minor issue in MetadataService, but this doesn't cause any issues in the current code --- src/app/core/metadata/metadata.service.ts | 2 +- .../shared/input-suggestions/input-suggestions.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/metadata/metadata.service.ts b/src/app/core/metadata/metadata.service.ts index 1aacb762955..dcc355edd0f 100644 --- a/src/app/core/metadata/metadata.service.ts +++ b/src/app/core/metadata/metadata.service.ts @@ -27,7 +27,7 @@ export class MetadataService { * Returns undefined otherwise. */ public virtualValue(metadataValue: MetadataValue | undefined): string { - if (this.isVirtual) { + if (this.isVirtual(metadataValue)) { return metadataValue.authority.substring(metadataValue.authority.indexOf(VIRTUAL_METADATA_PREFIX) + VIRTUAL_METADATA_PREFIX.length); } else { return undefined; diff --git a/src/app/shared/input-suggestions/input-suggestions.component.ts b/src/app/shared/input-suggestions/input-suggestions.component.ts index a0717a32598..0ef8d753e06 100644 --- a/src/app/shared/input-suggestions/input-suggestions.component.ts +++ b/src/app/shared/input-suggestions/input-suggestions.component.ts @@ -182,11 +182,11 @@ export class InputSuggestionsComponent implements ControlValueAccessor, OnChange } /** - * When any key is pressed (except for the Enter button) the query input should move to the input field + * When any key is pressed (except for the Enter & Tab button) the query input should move to the input field * @param {KeyboardEvent} event The keyboard event */ onKeydown(event: KeyboardEvent) { - if (event.key !== 'Enter') { + if (event.key !== 'Enter' && event.key !== 'Tab') { this.queryInput.nativeElement.focus(); } }