Add v4/v5 compatibility for deprecated APIs (FieldDropdown, Autocomplete)#1292
Merged
ukrbublik merged 2 commits intoukrbublik:masterfrom Aug 30, 2025
Merged
Conversation
- Replace deprecated dropdownStyle with popupStyle for Ant Design v5 - Replace deprecated dropdownMatchSelectWidth with popupMatchSelectWidth for v5 - Maintain backward compatibility with original props for v4 - Add version detection logic to dynamically choose appropriate props - Fixes Select dropdown style deprecation warnings in Ant Design v5
- Replace deprecated Menu.SubMenu/MenuItem with items array for Ant Design v5 - Maintain backward compatibility with SubMenu/MenuItem components for v4 - Update Dropdown component to use 'menu' prop (v5) vs 'overlay' prop (v4) - Add version detection logic to dynamically choose appropriate API - Fixes Menu overlay deprecation warnings in Ant Design v5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 00ebce6:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1292 +/- ##
==========================================
- Coverage 79.60% 79.51% -0.10%
==========================================
Files 246 246
Lines 13148 13168 +20
Branches 1744 1754 +10
==========================================
+ Hits 10467 10471 +4
- Misses 1802 1813 +11
- Partials 879 884 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
DenysOblohin-RecoLabs
approved these changes
Aug 30, 2025
ukrbublik
approved these changes
Aug 30, 2025
Owner
|
Thanks for working on this. Looks good |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
overlay→menuprop, SubMenu/MenuItem →itemsarraydropdownStyle→popupStyle,dropdownMatchSelectWidth→popupMatchSelectWidthImplementation
parseInt(antdVersion.split(".")[0])