angular / angular/components

Chip Input: Should split pasted text

Ouverte
#11,690 4 commentaires 8 réactions 0 personnes assignées Voir sur GitHub
area: material/chips G P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
Pasting the text: `apple, banana, orange,` into a [chip input](https://material.angular.io/components/chips/overview#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,`
1. Paste it into the example input on the Angular Material chip [input demo site](https://material.angular.io/components/chips/overview#chip-input)
1. Press `Enter`
1. 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?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par l’exemple d’entrée de chips de la démo Angular Material et reproduisez le collage de `apple, banana, orange,`. Suivez la façon dont la valeur collée est traitée lorsque vous appuyez sur Enter, et vérifiez que le comportement final produit trois chips distincts au lieu d’un seul.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.