Akryum / Akryum/vue-virtual-scroller

When content size inside the before slot changes, virtual scroller breaks

Aberta
#285 5 comentários 3 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
TypeScript
Estrelas
10.8k
Forks
973
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

The size of the `before` slot is not being watched for changes and the virtual scroller breaks whenever such content changes. You can see the issue on this CodeSandbox:
https://codesandbox.io/embed/vue-virtual-scroller-issue-x22rm

**Steps to reproduce:**
1. Open the CodeSandbox.
2. Try to scroll in the demo, everything will work as expected.
3. Click the red button labeled "Click to break" at the top of the page.
4. Scroll the page again. The items in the list will disappear before intended.

The expected would be that if the `before` slot changes, the calculations that vue-virtual-scroller does are also updated. In theory, it can be accomplished by using mutation observers on the `before` and `after` slots.

Guia de contribuição

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

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

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