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 gets removed after editing #11298

Closed
@giricr

Description

@giricr

Bug

AngularJS Material Demo and steps to reproduce the issue:

AngularJS Material Demo which demonstrates the issue:

Detailed Reproduction Steps:

  1. Select an editable chip (in section: Basic Usage > Make chips editable) by single click.
  2. Press Space-bar / Return key to enter edit mode
  3. Modify the content (NOTE: make sure not to press any arrow keys or click with mouse once you are in edit mode)
  4. 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

  1. 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
  2. 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!

Metadata

Metadata

Assignees

Labels

P2: requiredIssues that must be fixed.a11yThis issue is related to accessibilityfor: internal contributorThe team will address this issue and community PRs are not requested.has: Pull RequestA PR has been created to address this issueresolution: fixedseverity: regressionThis issue is related to a regressiontype: bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions