Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

autocomplete(chips): deleting chips breaks ability to add or render new chipsΒ #11218

@Splaktar

Description

@Splaktar

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Deleting chips should not break the ability to add or render other chips.

What is the current behavior?

We support multi value with separator comma, enter, space and tab.
It works good as long as we don't delete any chip. As soon as we delete the chip, nothing works.
We made sure model looks good even after deleting but somehow md-item-template doesn't get rendered.

CodePen and steps to reproduce the issue:

CodePen Demo which shows your issue: TBD
<md-chips
      flex="100"
      md-autocomplete-snap
      class="..."
      readonly="..."
      ng-model="..."
      ng-if="..."
      md-transform-chip="..."
      md-on-remove="...">
</md-chips>
Detailed Reproduction Steps: TBD

What is the use-case or motivation for changing an existing behavior?

It worked as expected in 1.1.7.

Which versions of AngularJS, Material, OS, and browsers are affected?

AngularJS Material 1.1.7
Others TBD

Is there anything else we should know? Stack Traces, Screenshots, etc.

Verified that this is fixed by reverting #11166 in #11214.

Metadata

Metadata

Assignees

Labels

P3: importantImportant issues that really should be fixed when possible.g3: reportedThe issue was reported by an internal or external product team.has: Pull RequestA PR has been created to address this issueresolution: fixedtype: bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions