Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Master Detail scroll into view

未关闭
#2,907 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
react, typescript
领域
frontend

调研方向

首先按照列出的步骤重现 DataGrid 中的 Master Detail overflow 情况,然后跟踪展开的详情行的 scroll-into-view 行为。完成的标准是:选择或点击详情行内容不再触发滚动,同时表格单元格正常的 scroll-into-view 行为保持不变。

由索引模型根据 Issue 内容生成。

描述

Describe the bug

The scroll into view mechanic for normal table cells works fine. However, when using the Master Detail pattern, scroll into view can be a poor design choice when DataGrid overflows.

Below is a quick video that demonstrates an overflowed DataGrid with Master Detail. The first few seconds is me horizontally scrolling with a trackpad. The quick left to right movement afterward occurs whenever I click on the expanded row. This happens because of scroll into view.

When trying to select text in the expanded row, it also causes the scroll into view to trigger multiple times, making it hard to read/select text.

https://user-images.githubusercontent.com/11511460/167506018-3924f986-97c6-4320-8cce-ef7f97af3183.mov

To Reproduce

  1. Create DataGrid
  2. Add two columns with large width, enough to cause DataGrid to overflow scroll
  3. Add the Master Detail column expanded key with formatter that has a similarly large width for the detail row
  4. Add sample row
  5. Expand the row
  6. Click/select text on detail row

Expected behavior

Scroll into view should be disabled for detail rows.

Environment

  • react-data-grid version: 7.0.0-beta.12
  • react/react-dom version: 18
主要语言
TypeScript
星标
7.7k
派生
2.2k
平均合并
1 天 3 小时
30 天内合并 PR
20

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Comcast/react-data-grid 的其他 Issue

查看 Comcast/react-data-grid 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。