Skip to content

Bug: Checked attribute does not update in the dom #24439

@sailordotcom

Description

@sailordotcom

React version:

Steps To Reproduce

  1. Go to React's code pen example you can find the link in the documentation here
  2. Inspect " is going " checkbox element
  3. uncheck the checkbox

Screen Shot 2022-04-25 at 4 39 52 PM

Link to code example: https://codepen.io/gaearon/pen/wgedvV?editors=0010

The current behavior

dom does not update, the checked attribute stays no matter what.
same goes if the initial state is set to false, the checked attribute never appears on the input element.

The expected behavior

The checked attribute should be removed if not checked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions