I have an input inside a mat-radio-button, Is there a way to focus the radio button when I focus on the input?
<mat-radio-button
value="change"
id="change"
name="titleAction"
value="change"
formControlName="titleAction"
>Change Title
<input
placeholder="Add New Title"
id="changeTextInput"
formControlName="titleText"
(click)="clickOnInput()"
/>
</mat-radio-button>
</mat-radio-group>
I Tried this but not working:
clickOnInput(): void {
document.getElementById('change').focus();
}