Skip to content

db-checkbox: checked property leads to disabled checkbox #1646

@annsch

Description

@annsch

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

With use of checked={true} in react-components the ability to manually change <input type="checkbox">'s value by click get's lost. This bug can also be reproduced in patternhubs overview: https://db-ui.github.io/mono/review/main/components/checkbox/overview

Expected Behaviour

After setting checked={true}checkboxes should be still changeable

Screenshots

No response

Browser version

None

Add any other context about the problem here.

  • Evaluate we should document a difference between defaultChecked (for react only) and checked (uncontrolled vs. controlled components)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions