angular / angular/components

With horizontal listbox, first chip gets focused on parent wrapper click

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

Description

#### What is the expected behavior?
".mat-chip-list-wrapper" should not catch click event

#### What is the current behavior?
When you click outside of the chips in the ".mat-chip-list-wrapper" container that is full width due to flex property, the first chip of the wrapper get selected.

#### What are the steps to reproduce?
Use the official chips example https://odjogmnnjkj.angular.stackblitz.io/ and click on the far right of the chips. The first chip will get focused.
![chips_focus](https://user-images.githubusercontent.com/19934211/55610120-8f1e3f80-5782-11e9-9d0c-b4388df6487f.gif)

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.2.12, Material 7.3.6, Typescript 3.1.1
Issue found on:
- mac OS High Sierra with Chrome 73.0.3683.86, Safari 12.1, Firefox
- windows 10 enterprise using Chrome 73.0.3683.103, Edge and Firefox 60.6.1esr

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par l’exemple officiel de chips et reproduisez le clic dans l’espace vide du .mat-chip-list-wrapper pleine largeur. Suivez le comportement de clic et de focus du wrapper, puis vérifiez qu’un clic en dehors des chips ne donne plus le focus au premier chip, tandis qu’un clic sur un chip continue de fonctionner.

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
42/100

Recevez les nouvelles issues par e-mail

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