Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Master Detail scroll into view

オープン
#2,907 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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日 2時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Comcast/react-data-grid のほかの issue

Comcast/react-data-grid の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。