lundi 20 juillet 2020

Prevent checkbox Label to Toggle the checkBox

Here is my checkbox in angular and i want to prevent the default behaviour of it.

<mat-checkbox (change)="changeSelectionTo()" [(ngModel)]="isChangeRule">Name</mat-checkbox>

Here whenever i click on name label...the checkbox gets toggled which i do not want to.. How can i prevent this from toggling when click on label . I have tried all others post too but I could not come up with the solution . I can not use jQuery.




Aucun commentaire:

Enregistrer un commentaire