Skip to content

Commit

Permalink
Merge pull request #194 from rahulramakrishnan3/release-2.4.1
Browse files Browse the repository at this point in the history
bug fix 864
  • Loading branch information
kiranharidas187 authored Aug 8, 2023
2 parents 2eb4d29 + c62ed57 commit ebb5210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/home-search/home-search.page.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<app-page-header [config]="headerConfig"></app-page-header>
<ion-content class="ion-padding">
<ion-toolbar>
<ion-searchbar class="top-padding" [(ngModel)]="searchText" placeholder="" (ionInput)="checkInput()" debounce="100"></ion-searchbar>
<ion-searchbar class="top-padding" [(ngModel)]="searchText" placeholder="" (keypress)="checkInput($event)" debounce="100"></ion-searchbar>
</ion-toolbar>
<ion-segment (ionChange)="segmentChanged($event)" [value]="type">
<ion-segment-button value="all-sessions">
Expand Down
7 changes: 5 additions & 2 deletions src/app/pages/home-search/home-search.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ export class HomeSearchPage implements OnInit {
this.searching = false;
}

checkInput(){
this.searchText=this.searchText.replace(/^ +/gm, '')
checkInput(event: any){
this.searchText=this.searchText.replace(/^ +/gm, '');
if(event.keyCode == 13){
this.search();
}
}

search(){
Expand Down

0 comments on commit ebb5210

Please sign in to comment.