Will you please add $event.preventDefault() to the click events for cancel and confirm buttons so that it does not submit the whole form?
<button id="cancelBtn" [ngClass]="cancelBtnStyle" type="reset" (click)="confirmNo(); $event.preventDefault()">{{popupService.options.cancleBtnContent}}</button><button id="confirmBtn" [ngClass]="confirmBtnStyle" (click)="confirmYes(); $event.preventDefault()" >{{popupService.options.confirmBtnContent}}</button>
Hi Ole,
Will you please add $event.preventDefault() to the click events for cancel and confirm buttons so that it does not submit the whole form?
<button id="cancelBtn" [ngClass]="cancelBtnStyle" type="reset" (click)="confirmNo(); $event.preventDefault()">{{popupService.options.cancleBtnContent}}</button>
<button id="confirmBtn" [ngClass]="confirmBtnStyle" (click)="confirmYes(); $event.preventDefault()" >{{popupService.options.confirmBtnContent}}</button>
or provide option to submit whole form or popup.
I can update the code if that is ok.
Thanks, Gyan