Popover reloads my page


#1

Hi

I have a image inside a form which on click opens a popover. My problem is the component gets reloaded once the popover has been raised. Is there any way to prevent this.

Thanks


#2

not sure if this is same case but I had an alert popup using AlertController
it had an input field and when i hit update in alert it dismissed the Alert and also the page.

asks on here and got answer, event.stopPropagation()

html

<button type="button" ion-button (click)="editMedicationQty(item,i,$event)">

script

editMedicationQty(editObj: Medications,idx,ev) {
    ev.stopPropagation();