-
-
Notifications
You must be signed in to change notification settings - Fork 53.5k
feat: [v6] Retire deprecated api for modal #52237
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
Conversation
|
👁 Visual Regression Report for PR #52237 Failed ❌
Warning There are more diffs not shown in the table. Please check the Full Report for details. Important There are 350 diffs found in this PR: 🔄 314 changed, 🆕 36 added.
|
WalkthroughThis pull request focuses on retiring the deprecated Changes
|
@@ -161,7 +158,7 @@ const Modal: React.FC<ModalProps> = (props) => { | |||
prefixCls={prefixCls} | |||
rootClassName={classNames(hashId, rootClassName, cssVarCls, rootCls)} | |||
footer={dialogFooter} | |||
visible={open ?? visible} | |||
visible={open} | |||
mousePosition={restProps.mousePosition ?? mousePosition} | |||
onClose={handleCancel as any} | |||
closable={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that the removal of the visible
property does not affect any existing functionality that might have relied on it. The transition to open
should be thoroughly tested.
size-limit report 📦
|
More templates
commit: |
Deploying ant-design with
|
Latest commit: |
1242bb9
|
Status: | ✅ Deploy successful! |
Preview URL: | https://9159e878.ant-design.pages.dev |
Branch Preview URL: | https://v6-kiner-retire-deprecated-a-47dy.ant-design.pages.dev |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #52237 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 763 763
Lines 13734 13731 -3
Branches 3585 3583 -2
=========================================
- Hits 13734 13731 -3 ☔ View full report in Codecov by Sentry. |
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
📝 Change Log