Skip to content

Incorrect value of HTML checked attribute when using switch or radio button #8024

@jandrew44

Description

@jandrew44

Environment

  • Package version(s):
    @blueprintjs/core: 6.10.0
  • Operating System:
    Windows 10 Home Edition
  • Browser name and version:
    Google Chrome 146.0.7680.178

Code Sandbox

Can be reproduced on the Blueprint docs page:
https://blueprintjs.com/docs/#core/components/switch

Steps to reproduce

  1. Open the link mentioned above
  2. Open developer console and find the input corresponding to the switch with value true, note it has attribute checked:
Image
  1. Now click on this switch and change its value to false

Actual behavior

The input still has the attribute checked:

Image

Expected behavior

Attribute checked is removed from the input.
The same is true for radio buttons.

Possible solution

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions