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: Fixed the problem that internationalization of table columns fails when searching #48126
Conversation
Run & review this pull request in StackBlitz Codeflow. |
👁 Visual Regression Report for PR #48126 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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #48126 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 736 736
Lines 12684 12690 +6
Branches 3326 3329 +3
=========================================
+ Hits 12684 12690 +6 ☔ View full report in Codecov by Sentry. |
pr title 需要用英文 |
|
Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com>
@@ -2079,6 +2079,44 @@ describe('Table.filter', () => { | |||
fireEvent.change(container.querySelector('.ant-input')!, { target: { value: '111' } }); | |||
}); | |||
|
|||
it('renders empty element when search not found', () => { | |||
jest.spyOn(console, 'error').mockImplementation(() => undefined); |
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.
这个不 mockRestore 清理掉吗
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.
得清理
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.
@LingJinT 来补一个?
…ls when searching (ant-design#48126) * fix: 表格列在搜索情况下,国际化失效 ant-design#48110 * Update components/table/hooks/useFilter/FilterDropdown.tsx Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> * fix: 补充测试用例 --------- Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> Co-authored-by: l2015 <lingjt@dtdream.com> Co-authored-by: afc163 <afc163@gmail.com>
…ls when searching (ant-design#48126) * fix: 表格列在搜索情况下,国际化失效 ant-design#48110 * Update components/table/hooks/useFilter/FilterDropdown.tsx Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> * fix: 补充测试用例 --------- Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> Co-authored-by: l2015 <lingjt@dtdream.com> Co-authored-by: afc163 <afc163@gmail.com>
…ls when searching (ant-design#48126) * fix: 表格列在搜索情况下,国际化失效 ant-design#48110 * Update components/table/hooks/useFilter/FilterDropdown.tsx Co-authored-by: afc163 <afc163@gmail.com> Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> * fix: 补充测试用例 --------- Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com> Co-authored-by: l2015 <lingjt@dtdream.com> Co-authored-by: afc163 <afc163@gmail.com>
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #48110
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge