Skip to content

[Ag20] mat-chip-grid does not work well in add/edit admission control rule dialog #1117

@xingzhang-suse

Description

@xingzhang-suse

Behavior

Open the add/edit rule popup, click the chip in the criteria chip grid, the criteria can be reflected in the criterion input components above.
However, when clicking other place, the chip is gone and the console log shows errors
Image

Initial analysis

When the mat-chip-grid is on blur, the form controls value of the chip will be automatically converted into the displayed text instead of original object value. So the original data is lost. The functions which are using this original data crashed.

Reason

We changed the Angular material component into mat-chip-grid > mat-chip-row from Angular20, as the original one is not supported.
But the behavior of mat-chip-grid is different.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions