diff --git a/src/AjaxUploader.tsx b/src/AjaxUploader.tsx index c8d4b9a..c9a6136 100644 --- a/src/AjaxUploader.tsx +++ b/src/AjaxUploader.tsx @@ -269,6 +269,7 @@ class AjaxUploader extends Component { classNames = {}, disabled, id, + name, style, styles = {}, multiple, @@ -307,6 +308,11 @@ class AjaxUploader extends Component { { expect(container.querySelector('input')!.id).toBe('bamboo'); }); + // https://github.com/ant-design/ant-design/issues/50643 + it('with name', () => { + const { container } = render(); + expect(container.querySelector('input')!.name).toBe('bamboo'); + }); + it('should pass through data & aria attributes', () => { const { container } = render(