-
-
Couldn't load subscription status.
- Fork 531
Add v4/v5 compatibility for deprecated APIs (FieldDropdown, Autocomplete) #1292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add v4/v5 compatibility for deprecated APIs (FieldDropdown, Autocomplete) #1292
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 |
|
Thanks for working on this. Looks good |
Changes
overlay→menuprop, SubMenu/MenuItem →itemsarraydropdownStyle→popupStyle,dropdownMatchSelectWidth→popupMatchSelectWidthImplementation
parseInt(antdVersion.split(".")[0])