From 5a912f02b7b8c5ce1805d451f67cd3db728ca985 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 22 May 2024 12:42:21 +0300 Subject: [PATCH] [Develop]: Advanced search input add on changes reinitialize input style --- .../advanced-search-input.component.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sharedComponents/advanced-search-input/advanced-search-input.component.ts b/sharedComponents/advanced-search-input/advanced-search-input.component.ts index ee420334..49aedc65 100644 --- a/sharedComponents/advanced-search-input/advanced-search-input.component.ts +++ b/sharedComponents/advanced-search-input/advanced-search-input.component.ts @@ -58,15 +58,22 @@ export class AdvancedSearchInputComponent implements AfterContentInit, OnDestroy } ngAfterContentInit() { - this.inputs.forEach(input => { - input.inputClass = 'advanced-search'; - input.selectArrow = null; + this.init(); + this.inputs.changes.subscribe(input => { + this.init(); }); } ngOnDestroy() { } - + + init() { + this.inputs.forEach(input => { + input.inputClass = 'advanced-search'; + input.selectArrow = null; + }); + } + focusNext(input: InputComponent | EntitiesSelectionComponent, event: any = null) { if(!event || !event.init) { setTimeout(() => {