Skip to content

[BUG] mgt-todo checkboxes are being checked/unchecked in read-only mode #2408

@musale

Description

@musale

Describe the bug
In read-only mode, the check boxes can be checked/unchecked.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://mgt.dev/next/v3/?path=/story/components-mgt-todo--read-only
  2. Click on a task from the list.
  3. Todo tasks will be rendered for the tasks. Check/Uncheck the check boxes.
  4. See error

Expected behavior
In read-only mode, all the controls in the component should not be interactable.

Screenshots
Last task on the list is checked but in read-only mode I clicked the checkbox and unchecked.

image

Unchecked boxes, when clicked, they disappear.

Environment (please complete the following information):

  • OS: All
  • Browser: All
  • Framework: All
  • Context: All
  • Version: v3.0.0-rc-1
  • Provider: None

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done ✔️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions