fix: clear stale active bar layer state#7547
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughBar active-state rendering now clears stale layering when another bar becomes active. A CSS transition test verifies tooltip-driven switching leaves only the newly active bar in the active layer. ChangesBar active-layer transition
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 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. Comment |
Bundle ReportChanges will increase total bundle size by 20.14kB (0.36%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: recharts/bundle-umdAssets Changed:
view changes for bundle: recharts/bundle-es6Assets Changed:
view changes for bundle: recharts/bundle-treeshaking-polarAssets Changed:
view changes for bundle: recharts/bundle-treeshaking-treemapAssets Changed:
view changes for bundle: recharts/bundle-treeshaking-cartesianAssets Changed:
view changes for bundle: recharts/bundle-cjsAssets Changed:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7547 +/- ##
==========================================
- Coverage 88.25% 88.18% -0.08%
==========================================
Files 607 613 +6
Lines 14102 14250 +148
Branches 3544 3582 +38
==========================================
+ Hits 12446 12566 +120
- Misses 1469 1494 +25
- Partials 187 190 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fixes #6953.
When an active Bar moves into the active z-index layer, it waits for transitionend before returning to the normal bar layer. If another bar becomes active before that event fires, the previous bar can stay in the active layer as an inactive shape.
This clears that stale layer state when the active index/dataKey points to another bar, while preserving the existing transitionend path when the chart simply becomes inactive.
Verification:
Summary by CodeRabbit