Skip to content

Commit 446280b

Browse files
Fixed search facet deadlock
Also fixed minor issue in MetadataService, but this doesn't cause any issues in the current code
1 parent 25e2e29 commit 446280b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/core/metadata/metadata.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class MetadataService {
2727
* Returns undefined otherwise.
2828
*/
2929
public virtualValue(metadataValue: MetadataValue | undefined): string {
30-
if (this.isVirtual) {
30+
if (this.isVirtual(metadataValue)) {
3131
return metadataValue.authority.substring(metadataValue.authority.indexOf(VIRTUAL_METADATA_PREFIX) + VIRTUAL_METADATA_PREFIX.length);
3232
} else {
3333
return undefined;

src/app/shared/input-suggestions/input-suggestions.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ export class InputSuggestionsComponent implements ControlValueAccessor, OnChange
182182
}
183183

184184
/**
185-
* When any key is pressed (except for the Enter button) the query input should move to the input field
185+
* When any key is pressed (except for the Enter & Tab button) the query input should move to the input field
186186
* @param {KeyboardEvent} event The keyboard event
187187
*/
188188
onKeydown(event: KeyboardEvent) {
189-
if (event.key !== 'Enter') {
189+
if (event.key !== 'Enter' && event.key !== 'Tab') {
190190
this.queryInput.nativeElement.focus();
191191
}
192192
}

0 commit comments

Comments
 (0)