angular / angular/components

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

Abierto
#15,728 16 comentarios 4 reacciones 0 asignados Ver en GitHub
Accessibility area: material/chips P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con el ejemplo oficial de chips y reproduce el clic en el espacio vacío del .mat-chip-list-wrapper de ancho completo. Rastrea el comportamiento de clic y foco del wrapper y, a continuación, verifica que al hacer clic fuera de los chips ya no se enfoque el primer chip, mientras que hacer clic en un chip siga funcionando.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.