react-data-grid
react-data-grid copied to clipboard
Remove scrollToCell helper
Replaced scrollToRow/scrollToCell with a new scrollToCell method
New logic
- Set
scrollToCellstate - Render an additional cell
- Scroll to the cell using
scrollIntoView - Clear
scrollToCellstate
Codecov Report
Merging #2851 (17fbb92) into main (5a94124) will increase coverage by
1.98%. The diff coverage is100.00%.
@@ Coverage Diff @@
## main #2851 +/- ##
==========================================
+ Coverage 94.05% 96.03% +1.98%
==========================================
Files 38 39 +1
Lines 1244 1237 -7
Branches 396 398 +2
==========================================
+ Hits 1170 1188 +18
+ Misses 74 49 -25
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/hooks/useCalculatedColumns.ts | 99.16% <ø> (ø) |
|
| src/DataGrid.tsx | 95.05% <100.00%> (+5.05%) |
:arrow_up: |
| src/ScrollToCell.tsx | 100.00% <100.00%> (ø) |
|
| src/utils/domUtils.ts | 50.00% <100.00%> (ø) |