Skip to content

Checkbox <input> never has checked atrribute in DOM #2879

Closed

Description

Unless we pass defaultChecked to a checkbox, React doesn't change the checked attribute in the DOM. This is default browser behavior. React has a related issue that's been open for years. However, changing the attribute makes it easier for Selenium testing to take place.

We should evaluate whether we want to make the attribute change in the DOM like with #2749, or revert it and instead rely on checking the value property of the <input>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions