Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updocs: clarify form control usage in form-field w/ chip-list and chip-input #19118
Comments
|
It seems |
|
The problem here is that the A fix would be to capture the disabled state of the input in the chip list, but conceptually it should be the other way around. i.e. the chip-list is the primary source of data, and notifies the chip input if it should be disabled. It's possible that the input is disabled while the chip list is not, right? In your concrete StackBlitz, a fix would be toggle the disabled state on the chip-list. Either by using the disabled input or by using a form control on the chip list. We should probably clarify this in the documentation. Happy to chat more about it though. |
|
@devversion Maybe the example in the docs could have a correctly placed |
|
@btxtiger Yeah, I agree. We should make this more obvious in the docs. Feel free to send a PR if you want. Otherwise I can have a look when I get a chance. |


Reproduction
Use StackBlitz to reproduce your issue:
https://stackblitz.com/edit/angular-b8qqaf
Steps to reproduce:
https://material.angular.io/components/chips/overview
Expected Behavior
What behavior were you expecting to see?
Should be disabled, light gray color
Actual Behavior
What behavior did you actually see?
Is functionally disabled, but not visibly
Environment