Skip to content

Chip Input: Should split pasted text #11690

Open
@dpurp

Description

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Pasting the text: apple, banana, orange, into a chip input should result in three different chips.

What is the current behavior?

Produces a single chip with all three items.

What are the steps to reproduce?

  1. Copy the text: apple, banana, orange,
  2. Paste it into the example input on the Angular Material chip input demo site
  3. Press Enter
  4. There should be three chips (right now, only there is only one)

What is the use-case or motivation for changing an existing behavior?

Allow inputting data via copy/paste.

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

Angular Material 6.2.1

Is there anything else we should know?

Metadata

Assignees

No one assigned

    Labels

    GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/chips

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions