Skip to content

bug(chips): Chip options initial value skipped when using reactive form in v15 #26041

Closed
@MikaStark

Description

@MikaStark

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

Never

Description

Using a mat-chip-listbox with mat-chip-options in a reactive form, the initial state is totally ignored. It works perfectly with template driven forms.

In a multiple value case, even after clicking a chips, the whole array is replaced instead of only toggling the clicked chips value.

Reproduction

https://stackblitz.com/edit/angular-ahhyz3-hgok1g

Expected Behavior

Working just like template driven form version

Actual Behavior

The control value is well set but the concerned chips remain unselected

Environment

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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/chips

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions