acl-services / acl-services/paprika

ListBox - options list does not consistently open with selected item in view

Aberta
#473 0 comentários 0 reações 0 responsáveis Ver no GitHub
Bug 🐞 list-box Low Priority ↓
Linguagem predominante
JavaScript
Estrelas
54
Forks
10
Merge médio
1d 12h
PRs com merge (30d)
6

Descrição

# Bug Report

### Observed
When an item in the ListBox options list is selected, the options list will close, but when it reopens, the list is scrolled to show the selected item at the top. When opening a second time, it does not readjust the scroll position, and if the selected item may be out of view.

### Expected
For singleselect ListBox, the selected item could _always_ be scrolled into view when the options list is opened.

Unsure how to handle for multiselect scenario.

### ScreenCap
![listbox - scroll bug](https://user-images.githubusercontent.com/14944896/78717406-653bb380-78d5-11ea-9edf-a37084fc02c7.gif)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

No files are specified in the report, so start by locating the ListBox implementation and the open/close + scroll behavior in the source. Reproduce the bug by selecting an item, closing the options list, reopening it, and checking whether the selected item is brought into view consistently. Run the ListBox-related tests or stories after any change, and validate done when repeated opens always show the selected option correctly in singleselect (and multiselect behavior is handled intentionally).

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
javascript, react
Domínio
frontend
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
Meio dia
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
58/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.