I want to create a dropdown which has my mat-option with multiselect and have radio buttons on each mat-option.
The problem that I am facing is I cannot ideally click on radio buttons. On clicking on any option the radio gets selected automatically and if I select another radio option it deselects the field.
Something like this
<mat-option
*ngFor="let property of filteredProperties | async"
[value]="property"
matTooltipClass="tooltip"
matTooltipShowDelay="5000"
[matTooltip]="property"
(click)="loadPropertiesDetails(property)">
{{ property }}
<mat-radio-group formControlName="axis">
<mat-radio-button
class="radiobtn"
value="Primary"
>P</mat-radio-button>
<mat-radio-button
class="radiobtn"
value="Secondry"
>S</mat-radio-button>
</mat-radio-group>
</mat-option>
Is there any way to achieve so ?