Akryum / Akryum/vue-virtual-scroller

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

未關閉
#285 5 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
TypeScript
星號
10.8k
分支
973
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。