Repository navigation
fix: clear Transfer selection on one-way removal - #59428
Conversation
|
|
👁 Visual Regression Report for PR #59428 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 SummarySummary by CodeRabbit
Walkthrough单向 Transfer 移除右侧项目时,只有存在右侧选中项才触发 ChangesTransfer 选中状态
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change appears ready to merge after normal checks; no actionable risk remains from this review. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change corrects controlled selection behavior without adding a new interface or expanding component authority. The main design consideration is the ordering of the two existing callbacks during removal. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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. 我是小兔,蹦到 Transfer 旁, Comment |
More templates
commit: |
Bundle ReportChanges will decrease total bundle size by 5.79MB (-64.1%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #59428 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 834 834
Lines 16050 16052 +2
Branches 4215 4216 +1
=========================================
+ Hits 16050 16052 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



🤔 This is a ...
🔗 Related Issues
Fixes #59427
💡 Background and Solution
In one-way
Transfer, removing a right-side item clears the internal right-side selection but does not callonSelectChange. With controlledselectedKeys, the parent is never told to clear that selection, so the removed item appears checked after it moves to the left list.Notify
onSelectChangewhen the right-side selection is non-empty, using the existinghandleSelectChangepath beforeonChange. Keep the no-selection case silent. This matches the regular move path without changing the public API.The minimal reproduction uses released antd 6.6.5. I verified in the browser that after removing B,
targetKeysbecomes[], whileselectedKeysremains["b"]and B is checked on the left.Verification:
git diff --checkpassed.📝 Change Log