[Develop]: Advanced search input add on changes reinitialize input style
This commit is contained in:
parent
dede290a52
commit
5a912f02b7
|
@ -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(() => {
|
||||||
|
|
Loading…
Reference in New Issue