{
/>,
);
- wrapper.setProps({
- dataSource: dataSource.slice(2, 4),
- });
- wrapper
- .find('tbody input')
- .first()
- .simulate('change', { target: { checked: true } });
+ rerender(
+ ,
+ );
+ fireEvent.click(container.querySelector('tbody input'));
expect(onChange).toHaveBeenCalledWith(
['Jack', 'Lucy'],
[{ name: 'Jack' }, { name: 'Lucy' }],
diff --git a/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap b/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap
index 2fb7edc9d6..e773204a00 100644
--- a/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap
+++ b/components/table/__tests__/__snapshots__/Table.rowSelection.test.js.snap
@@ -976,7 +976,60 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
`;
-exports[`Table.rowSelection render with default selection correctly 1`] = ``;
+exports[`Table.rowSelection render with default selection correctly 1`] = `
+
+`;
exports[`Table.rowSelection should support getPopupContainer 1`] = `
{
const handleUpload = () => {
const formData = new FormData();
fileList.forEach(file => {
- formData.append('files[]', file.originFileObj as RcFile);
+ formData.append('files[]', file as RcFile);
});
setUploading(true);
// You can use any AJAX library you like
diff --git a/package.json b/package.json
index f8abb43946..96a2acc758 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "antd",
- "version": "4.21.0",
+ "version": "4.21.2",
"description": "An enterprise-class UI design language and React components implementation",
"title": "Ant Design",
"keywords": [
@@ -287,10 +287,10 @@
"scrollama": "^3.0.0",
"semver": "^7.3.5",
"simple-git": "^3.0.0",
- "stylelint": "14.8.3",
+ "stylelint": "^14.9.0",
"stylelint-config-prettier": "^9.0.2",
"stylelint-config-rational-order": "^0.1.2",
- "stylelint-config-standard": "^25.0.0",
+ "stylelint-config-standard": "^26.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
"stylelint-order": "^5.0.0",
"theme-switcher": "^1.0.2",
diff --git a/tsconfig.json b/tsconfig.json
index f594bea7bc..987d53ff4e 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -10,7 +10,9 @@
"moduleResolution": "node",
"esModuleInterop": true,
"experimentalDecorators": true,
- "jsx": "preserve",
+ "jsx": "react",
+ "jsxFactory": "React.createElement",
+ "jsxFragmentFactory": "React.Fragment",
"noUnusedParameters": true,
"noUnusedLocals": true,
"noImplicitAny": true,