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 gets removed after editing #11298
Closed
Description
Bug
AngularJS Material Demo and steps to reproduce the issue:
AngularJS Material Demo which demonstrates the issue:
Detailed Reproduction Steps:
- Select an editable chip (in section: Basic Usage > Make chips editable) by single click.
- Press Space-bar / Return key to enter edit mode
- Modify the content (NOTE: make sure not to press any arrow keys or click with mouse once you are in edit mode)
- Press Return (or click outside).
What is the expected behavior?
new value should become a chip again
What is the current behavior?
new value is removed
What is the use-case or motivation for changing an existing behavior?
This is basic functionality that should work
Which versions of AngularJS, Material, OS, and browsers are affected?
- AngularJS: 1.6.9
- AngularJS Material: 1.1.9 (above 1.1.1)
- OS: Linux, Mac OS, Windows
- Browsers: Chrome, Firefox, Safari
Is there anything else we should know? Stack Traces, Screenshots, etc.
There are couple of other issues
- clicking on the last character in chip removes the chip. Looks like the icon is too close to chip text content and click is actually on button
- Pressing right arrow after step 2 of reproduction steps will result in unstable state where chip looks as if it is in edit mode, but there is no cursor and further keystrokes will not edit the text content!