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

chips: editable chip removes item when the value is updated #10664

Closed
@DeneroWatz

Description

@DeneroWatz

Actual Behavior:

  • What is the issue? *

Modifying a value actually deletes the value/chip unless you manually select the old value before typing in the new value.

On Chrome 57.0.2987.133(version shouldn't matter), go to https://material.angularjs.org/latest/demo/chips and then select an item under 'Make chips editable' field.

If you don't select the old value but clear it using Backspace or Delete keys then type 'Kiwi' in it, that element of the array seems to get deleted and the chip disappears when you press Enter.

  • What is the expected behavior?
    It should not remove, but update the existing item.

CodePen (or steps to reproduce the issue): *
Reproduceable here - https://material.angularjs.org/latest/demo/chips

AngularJS Versions: *

  • AngularJS Version: 1.5.5
  • AngularJS Material Version: 1.1.3

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 57.0.2987.133
  • OS: * Windows 10
  • Stack Traces: None

Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions