grommet/grommet

InfiniteScroll w/ replace={true} breaks inside a Grid

Open

#5,739 创建于 2021年10月26日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (8,247 star) (1,015 fork)batch import
bughelp wanted

描述

Expected Behavior

  • Items further down in the grid render when scrolling quickly
  • Scroll position stays the same after scrolling down quickly

Actual Behavior

  • Items further down in the grid do not render when scrolling quickly
  • Scroll position jumps up after scrolling down quickly

URL, screen shot, or Codepen exhibiting the issue

Video of the bug: https://user-images.githubusercontent.com/22405692/138965354-ff1c0fd5-266b-46e0-ac42-b14663bb1b72.mov

Console error:

Codesandbox template that reproduces the issue: https://codesandbox.io/s/grid-infinite-scrolling-w-replace-m5x49?file=/src/App.js

Steps to Reproduce

  1. Wrap the InfiniteScroll component with a Grid
  2. Add the replace prop to InfiniteScroll
  3. In the app, verify that the scrolling experience is broken

Your Environment

  • Grommet version: Latest
  • Browser Name and version: Google Chrome Version 93.0.4577.63 (Official Build) (x86_64)
  • Operating System and version (desktop or mobile): macOS Catalina Version 10.15.7

贡献者指南