Repository navigation
fix: correct Table selection menu scope - #59570
Conversation
Invert current-page tree descendants and preserve disabled selections when clearing across pages. Cover custom child fields, repeated inversion, preserved records, and missing keys.
|
|
👁 Visual Regression Report for PR #59570 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
Bundle ReportChanges will increase total bundle size by 32 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
More templates
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #59570 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 833 833
Lines 16052 16052
Branches 4211 4212 +1
=========================================
Hits 16052 16052 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|


中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
Fixes #59569
Minimal reproduction on StackBlitz · Standalone source
💡 Background and Solution
This fixes two scope inconsistencies in Table's built-in selection menu:
getCheckboxProps.The changes are limited to
useSelectionand its existing tests; there are no public API or styling changes.Regression coverage includes nested descendants, custom
childrenColumnName, repeated inversion, disabled descendants, selections on another page, clearing from either page, preserved records, and missing keys. With the new tests applied to the unmodified base implementation, four cases fail; all five new cases pass with this fix.Screenshots
Both screenshots show the tree table after inversion and the paged table on page 2 after clearing from page 1. The first uses published
[email protected]; the second uses this branch's source.Narrow viewport: before / after.
Verification
npm run compileOnly, andgit diff --checkpassed.featurebranch completed without conflicts; this PR targetsmaster.📝 Change Log