bug(MatChipOption): Unable to disable individual mat-chip-option when used inside a form tag and with template-driven forms #29783
Labels
area: material/chips
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
[disabled]
used on amat-chip-option
that is part of amat-chip-listbox
is ignored when used with template-driven forms and is there is a parentform
tag used.Reproduction
StackBlitz link: https://stackblitz.com/edit/84akr3-apxcdy
Two identical examples, but the first example is enclosed within
<form>
Expected Behavior
In the first example, the first option should be disabled. As it is in the second example
Actual Behavior
In the first example, the first option is not disabled.
Environment
Angular CLI: 19.0.0-next.2
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64
Angular: 19.0.0-next.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, material, material-moment-adapter
... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1900.0-next.2
@angular-devkit/build-angular 19.0.0-next.2
@angular-devkit/core 19.0.0-next.2
@angular-devkit/schematics 19.0.0-next.2
@schematics/angular 19.0.0-next.2
rxjs 7.4.0
typescript 5.5.4
zone.js 0.15.0
The text was updated successfully, but these errors were encountered: