I have a bootstrap popover in which I'm using autoclose="outside" to close the popover on click of outside. But inside popover I have a mat menu which gets opened outside the popover. Problem here is if I select any radio button inside mat menu as it is outside the popover it closes the popover. I still want to retain the popover on click of anything from mat menu as it is still part of popover. On click of outside apart from mat menu then pop over should close.
code
<div #popOver="ngbPopover" placement="bottom" autoClose="outside"
[ngbPopover]="PopContent">
<ng-template #PopContent>
<button [matMenuTriggerFor]="menu1">
popover
</button>
<mat-menu #menu1="matMenu" xPosition="before">
<div (click)="$event.stopPropagation()" (keydown)="$event.stopPropagation()">
<mat-radio-group [(ngModel)]="menuvalue">
<mat-radio-button >
test
</mat-radio-button>
<mat-radio-button>
test2
</mat-radio-button>
<mat-radio-button>
test3
</mat-radio-button>
</mat-radio-group>
</div>
</mat-menu>
</ng-template>
</div>