Skip to content

On selecting on of the suggested items the background model also get selected this issue only in android device #163

@AamirAlam

Description

@AamirAlam

**search.html **

<ng-template #withCode let-attrs="attrs"> <span [innerHTML]="attrs.data.name | boldprefix:attrs.keyword"></span> - <span [innerHTML]="attrs.data.code | boldprefix:attrs.keyword"></span> </ng-template> <ion-auto-complete id="search" [dataProvider]="statinAutoComp" formControlName = "fromStation" [options]="{ placeholder : 'From Station',debounce:400 }" [template]="withCode" [hideListOnSelection]='true'> </ion-auto-complete>

search.module.ts
@NgModule({ declarations: [ TrainSearchPage, ], imports: [ AutoCompleteModule, IonicPageModule.forChild(TrainSearchPage), ] })

search.ts

Constructor

` constructor(public navCtrl: NavController,
public loadingCtrl:LoadingController,
public alertCtrl:AlertController,
public datepipe:DatePipe,
public modalCtrl:ModalController,
public completeTestService:CompleteTestService,
public saveService:SaveSearchesService,
public statinAutoComp:StationAutoComplete
) {

}`

please help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions