chips: editable chip removes item when the value is updated #10664
Description
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.5AngularJS Material Version:
1.1.3
Additional Information:
Browser Type: *
ChromeBrowser Version: *
57.0.2987.133OS: *
Windows 10Stack 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.