79787277

Date: 2025-10-10 11:27:01
Score: 0.5
Natty:
Report link

The best option i found was to use

<mat-slide-toggle [checked]="isChecked()" (mousedown)="toggle($event)" />

then in the function

toggle(event: any) {
  event.preventDefault();
}

this basically helps to capture the mouse event before any click event is done

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cozmik05