This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
chips: editable chip gets removed after editing #11298
Copy link
Copy link
Closed
Labels
P2: requiredIssues that must be fixed.Issues that must be fixed.a11yThis issue is related to accessibilityThis issue is related to accessibilityfor: internal contributorThe team will address this issue and community PRs are not requested.The team will address this issue and community PRs are not requested.has: Pull RequestA PR has been created to address this issueA PR has been created to address this issueresolution: fixedseverity: regressionThis issue is related to a regressionThis issue is related to a regressiontype: bug
Milestone
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!
Splaktar
Metadata
Metadata
Assignees
Labels
P2: requiredIssues that must be fixed.Issues that must be fixed.a11yThis issue is related to accessibilityThis issue is related to accessibilityfor: internal contributorThe team will address this issue and community PRs are not requested.The team will address this issue and community PRs are not requested.has: Pull RequestA PR has been created to address this issueA PR has been created to address this issueresolution: fixedseverity: regressionThis issue is related to a regressionThis issue is related to a regressiontype: bug