Skip to content

bug(CHECKBOX): checked status not properly reflected when updated through binding from within change event #30781

@meblum

Description

@meblum

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When setting the checkbox checked state through data binding from within a change event handler , the component will not reflect the checked state. (Setting the state directly on the checkbox component, does work as expected)

Reproduction

StackBlitz link: bug demo
Steps to reproduce:

  1. Create a checkbox
  2. Bind checked to an isChecked property
  3. Listen for change events
  4. In event handler set isChecked to true

Expected Behavior

You should not be able to deselect the checkbox

Actual Behavior

The checkbox appears deselected

Environment

  • Angular: 19.2.0
  • CDK/Material: 19.2.0
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions