Set a Switch Slider to ReadOnly


I’m having trouble setting a switch slider to read only. I’ve tried both readonly and disabled and neither has any effect, it is working for the other input fields:

Complete lack of support on this one…

I have worked it out now, for Angular reactive forms, set the disabled state when the form is created:

this.maintForm ={
business_unit_level: [’’, [Validators.required]],
is_active: [
{ value: true, disabled: !this.modify },