angular / angular/components

Chip Input: Should split pasted text

Aperta
#11,690 4 commenti 8 reazioni 0 assegnatari Vedi su GitHub
area: material/chips G P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### 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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con l’esempio di input dei chip nella demo di Angular Material e riproduci l’incollamento di `apple, banana, orange,`. Traccia il modo in cui il valore incollato viene gestito quando viene premuto Enter e verifica che il comportamento completato produca tre chip separati invece di uno.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.