Skip to content

[Checkbox] Add support for readOnly #17043

@mehrdad-shokri

Description

@mehrdad-shokri

Setting readOnly on Checkbox component should make it read-only.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

readOnly has no effect

Expected Behavior 🤔

readOnly should make component read-only

Steps to Reproduce 🕹

Working example:
https://codesandbox.io/s/material-demo-sdpbg
Steps:

  1. Set readOnly on Checkbox component

Your Environment 🌎

Tech Version
Material-UI v4.1.3
React 16.8.6
Browser Chrome v75
TypeScript -
etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: checkboxChanges related to the checkbox.scope: radioChanges related to the radio.type: new featureExpand the scope of the product to solve a new problem.waiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions