I'm new to ionic and working on Ionic 4. I want to open a Modal page on a select tag. But currently, it opens a default dialog with blank values and Cancels/OK buttons. I want to remove this dialog and just show a Modal. To open a Modal I used (click)
option in HTML. But how to remove this default dialog? I found this link which shows how to change function but I did not understand how to implement in mine.
<ion-content class="main-layout" padding>
<ion-row class="uploadvid-form">
<ion-col>
<form [formGroup]="uploadVid" (ngSubmit)="onSubmit(uploadVid.value)">
<ion-list class="ion_list_custom">
<ion-item>
<ion-label position="floating">Title</ion-label>
<ion-input class="title" #title formControlName="title" type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label position="floating">Topic</ion-label>
<ion-select (click)="openModal()" placeholder="Search Topic" class="topic" #topic formControlName="topic" type="text">
</ion-select>
</ion-item>
<ion-item>
<ion-label position="floating">Target Community</ion-label>
<ion-select placeholder="Select One" class="target" #target formControlName="target" type="text">
<ion-select-option value="f">Patients</ion-select-option>
<ion-select-option value="m">Doctors</ion-select-option>
<ion-select-option value="m">Both</ion-select-option>
</ion-select>
</ion-item>
</ion-list>
</form>
</ion-col>
</ion-row>
</ion-content>