79554188

Date: 2025-04-03 23:43:33
Score: 0.5
Natty:
Report link

As of v18, MatCheckbox supports disabledInteractive (used in conjunction with disabled) which a) retains the styles of a non-disabled checkboxes and also b) allows the checkbox to be focused but not changed. You can also play around with clickAction ('noop') but that uses providers (MAT_CHECKBOX_DEFAULT_OPTIONS) so it becomes all-or-nothing in a given component (you could create a wrapper component, however, in order to localize the setting).

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Demetrios Christopher