my issues with useVirtualizer with tanstack/react-table to sticky <thead>

Đang mở
#591 1 bình luận 16 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend, performance

Hướng nghiên cứu

Bắt đầu bằng cách mở CodeSandbox được liên kết tại src/main.tsx, khoảng các dòng 7-14, và tái hiện lỗi bằng cách cuộn đến index 90. So sánh thiết lập của useVirtualizer và tanstack/react-table với hành vi sticky dự kiến của ; hoàn thành nghĩa là header vẫn giữ trạng thái sticky khi cuộn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug

Describe the bug:
iam using useVirtualizer with tanstack/react-table to sticky , but iam scrolling to index 90 sticky not work

Demo live:
https://codesandbox.io/p/sandbox/keen-moser-k3g48j?embed=1&file=%2Fsrc%2Fmain.tsx%3A7%2C14

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/keen-moser-k3g48j?embed=1&file=%2Fsrc%2Fmain.tsx%3A7%2C14

Steps to reproduce

step -> scrolling to index 90 sticky not work

Expected behavior

Expected behavior : when scrolling sticky work

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

OS: Macos
Chorme: 116.0.5845.187 (Official Build) (arm64)

tanstack-virtual version
"@tanstack/react-virtual": "3.0.0-beta.60",
TypeScript version

No response

Additional context

"@tanstack/react-table": "^8.7.9",
"@tanstack/react-virtual": "3.0.0-beta.60",

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Ngôn ngữ chính
TypeScript
Star
7.2k
Fork
495
Merge trung bình
23 giờ 16 phút
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/virtual

Tất cả issue của TanStack/virtual

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.