fix: Select unknown props warning on dom element#56341
Conversation
Signed-off-by: afc163 <afc163@gmail.com>
|
|
👁 Visual Regression Report for PR #56341 Failed ❌
Important There are 3 diffs found in this PR: 🔄
|
Summary of ChangesHello @afc163, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a common React warning related to unknown props being passed to DOM elements. Specifically, it fixes an issue where properties from the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
📝 WalkthroughSummary by CodeRabbit发布说明
✏️ Tip: You can customize this high-level summary in your review settings. Walkthrough更新 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 分钟 Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (17)
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 |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Code Review
This pull request updates the versions of @rc-component/cascader, @rc-component/select, and @rc-component/tree-select to fix a bug where unknown props on Select options were being passed to DOM elements, causing React warnings. Updating these dependencies is the correct approach to resolve the issue by bringing in fixes from the underlying component libraries. The changes are appropriate and I see no issues with this pull request.
Deploying ant-design-next with
|
| Latest commit: |
cf794df
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://18c93c90.ant-design-next.pages.dev |
| Branch Preview URL: | https://afc163-patch-1.ant-design-next.pages.dev |
Deploying ant-design with
|
| Latest commit: |
cf794df
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a4356b88.ant-design.pages.dev |
| Branch Preview URL: | https://afc163-patch-1.ant-design.pages.dev |
Bundle ReportChanges will decrease total bundle size by 8.12MB (-67.79%) ⬇️. 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 #56341 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 804 804
Lines 14838 14838
Branches 3919 3919
=========================================
Hits 14838 14838 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
size-limit report 📦
|
More templates
commit: |










中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
close #55877
💡 Background and Solution
react-component/select#1189
📝 Change Log
options内属性会传递到 dom 元素导致 React 出现无关属性的警告。