I would like to understand what is causing this error in my application. Here are the codes:
desabilitar(elemento){
var radio = document.getElementById(elemento) as HTMLInputElement;
radio.checked = false;
}
<mat-radio-button class="margem" value=1 (change)="getRadioValorR($event)" click="desabilitar(G0)">1</mat-radio-button>
<mat-radio-button id="G0" name="G0" *ngIf="!getClass0()" class="margem" value="0" disabled>0</mat-radio-button>