Skip to content
Snippets Groups Projects
Commit ce9443be authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16648 TIME 0:04 fix js error when clicking on the search field next to document numbers

parent 4f9cab9f
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ import { NotificationService } from '../service/notification.service'; ...@@ -6,7 +6,7 @@ import { NotificationService } from '../service/notification.service';
import { FormControl } from '@angular/forms'; import { FormControl } from '@angular/forms';
import { debounceTime, switchMap, distinctUntilChanged, tap, finalize, elementAt } from 'rxjs/operators'; import { debounceTime, switchMap, distinctUntilChanged, tap, finalize, elementAt } from 'rxjs/operators';
import { AuthService } from '../service/auth.service'; import { AuthService } from '../service/auth.service';
import { MenuController, ModalController } from '@ionic/angular'; import { IonSearchbar, MenuController, ModalController } from '@ionic/angular';
import { ProfileComponent } from '../profile/profile.component'; import { ProfileComponent } from '../profile/profile.component';
import { FunctionsService } from '../service/functions.service'; import { FunctionsService } from '../service/functions.service';
import { FiltersService } from '../service/filters.service'; import { FiltersService } from '../service/filters.service';
...@@ -22,7 +22,7 @@ import { ActionsService } from '../service/actions.service'; ...@@ -22,7 +22,7 @@ import { ActionsService } from '../service/actions.service';
export class SidebarComponent implements OnInit, AfterViewInit { export class SidebarComponent implements OnInit, AfterViewInit {
@ViewChild('listContent') listContent: ElementRef; @ViewChild('listContent') listContent: ElementRef;
@ViewChild('searchInput') searchInput: ElementRef; @ViewChild('searchInput') searchInput: IonSearchbar;
subscription: Subscription; subscription: Subscription;
...@@ -107,9 +107,8 @@ export class SidebarComponent implements OnInit, AfterViewInit { ...@@ -107,9 +107,8 @@ export class SidebarComponent implements OnInit, AfterViewInit {
this.signaturesService.mode = ''; this.signaturesService.mode = '';
this.filter(''); this.filter('');
setTimeout(() => { setTimeout(() => {
this.searchInput.nativeElement.value = ''; this.searchInput.value = '';
this.searchInput.nativeElement.focus(); this.searchInput.setFocus();
this.searchInput.nativeElement.click();
}, 0); }, 0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment