[Develop]: Advanced search input add on changes reinitialize input style

This commit is contained in:
Konstantinos Triantafyllou 2024-05-22 12:42:21 +03:00
parent dede290a52
commit 5a912f02b7
1 changed files with 11 additions and 4 deletions

View File

@ -58,15 +58,22 @@ export class AdvancedSearchInputComponent implements AfterContentInit, OnDestroy
} }
ngAfterContentInit() { ngAfterContentInit() {
this.inputs.forEach(input => { this.init();
input.inputClass = 'advanced-search'; this.inputs.changes.subscribe(input => {
input.selectArrow = null; this.init();
}); });
} }
ngOnDestroy() { ngOnDestroy() {
} }
init() {
this.inputs.forEach(input => {
input.inputClass = 'advanced-search';
input.selectArrow = null;
});
}
focusNext(input: InputComponent | EntitiesSelectionComponent, event: any = null) { focusNext(input: InputComponent | EntitiesSelectionComponent, event: any = null) {
if(!event || !event.init) { if(!event || !event.init) {
setTimeout(() => { setTimeout(() => {