Expanding rows in a virtualized table will cause it to scroll to top
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 58/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- typescript
- Domínio
- frontend
Direção de pesquisa
Reproduza o comportamento usando o exemplo vinculado do StackBlitz, começando por src/App.svelte e pelo tratamento da expansão de linhas da tabela virtualizada. Verifique se alternar uma linha expandida após a rolagem preserva a posição atual da rolagem em vez de retornar ao topo, e adicione ou atualize um teste de regressão se o repositório fornecer um.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
When implementing expandable rows in a virtualized table, toggling an expandable row will immediately cause the table to scroll to top regardless of where the the current scroll offset is.
Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-virtual-xdmecx?file=src%2FApp.svelte
Steps to reproduce
- Scroll down table.
- Toggle on/off an expandable row.
- Table will immediately scroll to top.
Expected behavior
I expect to be able to toggle an expandable row and still be able to see it in it's current scroll position. Instead, It scrolls all the way to the top.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
MacOS, Brave browser v1.62.153
tanstack-virtual version
3.0.2
TypeScript version
^5.0.2
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
- Linguagem predominante
- TypeScript
- Estrelas
- 7.2k
- Forks
- 495
- Merge médio
- 23h 16min
- PRs com merge (30d)
- 19
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TanStack/virtual
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
Mantenedores costumam responder em até 1 dia
-
With `useScrollendEvent`, scrollToIndex and scrollToEnd stop short when the target moves while they settleTalvez já em andamento @Darkatse assumiu há 8 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
-
svelte-virtual renders no rows when the scroll element is bound after the store subscribesTalvez já em andamento @clean99 assumiu há 13 dias. Aberta
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
-
anchorTo: 'end' does not keep the reading position when only paddingStart changesTalvez já em andamento @duongynhi000001-crypto assumiu há 12 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 30/100
Mantenedores costumam responder em até 1 dia
-
anchorTo: 'end' loses the end when the scroll element shrinksTalvez já em andamento @langleyd assumiu há 41 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
Todas as issues de TanStack/virtual
Issues semelhantes
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 83/100
gofish-graphics/gofish-graphics#1384 ·
Mantenedores costumam responder em até 1 dia
-
adapter bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Olanetsoft/agent-lookout#353 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
vicharanashala/vibe#1542 ·
Mantenedores costumam responder em até 1 dia
-
bug chore P2 size:XS
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
josephfung/curia#2666 ·
Mantenedores costumam responder em até 1 dia
-
bug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
devarshishimpi/codra#178 ·
Mantenedores costumam responder em até 1 dia