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
fix: upload default FileList is more than maxCount, it can't remove it #47747
fix: upload default FileList is more than maxCount, it can't remove it #47747
Conversation
Run & review this pull request in StackBlitz Codeflow. |
👁 Visual Regression Report for PR #47747 Passed ✅
🎊 Congrats! No visual-regression diff found. |
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. |
0265428
to
74e1492
Compare
74e1492
to
73c79a8
Compare
73c79a8
to
cf3776e
Compare
5dcec6b
to
e26db3f
Compare
e26db3f
to
13c7082
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #47747 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 736 736
Lines 12684 12685 +1
Branches 3326 3327 +1
=========================================
+ Hits 12684 12685 +1 ☔ View full report in Codecov by Sentry. |
ant-design#47747) * fix: upload default FileList is more than maxCount, it can't remove it * fix: snapshot * fix: line
ant-design#47747) * fix: upload default FileList is more than maxCount, it can't remove it * fix: snapshot * fix: line
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
fix #47594
💡 Background and solution
当初始化时的fileList > maxCount 时,删除不起作用,无法触发onChange
解决方法: 如果当前操作的文件的
status
为removed
, 可正常触发onChange注意: 这里如果初始的fileList 为5, maxCount 为3, 当点击删除时,当前的fileList.length = 3
📝 Changelog
☑️ Self-Check before Merge