|
|
@ -154,6 +154,11 @@ export class GfAssistantComponent implements OnChanges, OnInit { |
|
|
private destroyRef: DestroyRef |
|
|
private destroyRef: DestroyRef |
|
|
) { |
|
|
) { |
|
|
addIcons({ closeCircleOutline, closeOutline, searchOutline }); |
|
|
addIcons({ closeCircleOutline, closeOutline, searchOutline }); |
|
|
|
|
|
this.destroyRef.onDestroy(() => { |
|
|
|
|
|
if (this.preselectionTimeout) { |
|
|
|
|
|
clearTimeout(this.preselectionTimeout); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@HostListener('document:keydown', ['$event']) |
|
|
@HostListener('document:keydown', ['$event']) |
|
|
@ -552,12 +557,6 @@ export class GfAssistantComponent implements OnChanges, OnInit { |
|
|
this.isOpen = aIsOpen; |
|
|
this.isOpen = aIsOpen; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
|
|
|
if (this.preselectionTimeout) { |
|
|
|
|
|
clearTimeout(this.preselectionTimeout); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private getCurrentAssistantListItem() { |
|
|
private getCurrentAssistantListItem() { |
|
|
return this.assistantListItems.find(({ getHasFocus }) => { |
|
|
return this.assistantListItems.find(({ getHasFocus }) => { |
|
|
return getHasFocus; |
|
|
return getHasFocus; |
|
|
|