Skip to content

Chip List incorrectly sets focus to Chip Input when chips are remove programattically #7240

Closed
@martin-the-geek

Description

@martin-the-geek

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When all chips in a chip list are removed programmatically, focus should not be moved to the associated chip input when the current focus is outside the chip list.

What is the current behavior?

The chip input is getting focused.

What are the steps to reproduce?

  1. Add chips to a chip list
  2. Tab out and move focus away from chip list and input
  3. Clear the chips programmatically (e.g. using a button)

See http://plnkr.co/edit/urO2dB?p=preview

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 4.3
Material: Beta 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions