fix(table-core): respect resize handler context document#6435
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe column resize handler now correctly selects a provided context document when initializing its event-listener target. A unit test verifies that ChangesColumn resizing document targeting
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 55bdcc5
☁️ Nx Cloud last updated this comment at |
What changed
Documentpassed toheader.getResizeHandlerWhy
The context-document fallback mixed
||with a conditional expression without parentheses. In browser environments, that made the globaldocumentwin even when a portal or detached-window document was explicitly supplied, so move and up events were observed on the wrong page.This restores the existing API's intended behavior without adding new surface area.
Validation
@tanstack/table-coretests: 52 files, 1,002 tests passedgit diff --checkpassedCloses #4483
Summary by CodeRabbit
Bug Fixes
Tests