I have multiple details elements. When clicking on mat-label, details is opening, whether $event.stopPropagation() is used or not. I would like to prevent that behaviour because the user expects to focus the input instead of opening the details.
<details>
<summary>
<mat-form-field (click)="$event.stopPropagation()">
<mat-label (click)="$event.stopPropagation()">First Name</mat-label>
<input matInput value="Marvel" />
</mat-form-field>
</summary>
details
</details>
Okay, I came up with this solution and it is working.