diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index ea1caf10c1..ea9a6d3c55 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -180,6 +180,7 @@ function FormItem(props: FormItemProps): React.ReactElement { 'colon', 'extra', 'getValueFromEvent', + 'getValueProps', 'hasFeedback', 'help', 'htmlFor', diff --git a/components/form/__tests__/index.test.js b/components/form/__tests__/index.test.js index 1c20b702f0..f6d8d18d03 100644 --- a/components/form/__tests__/index.test.js +++ b/components/form/__tests__/index.test.js @@ -695,10 +695,10 @@ describe('Form', () => { expect(wrapper.find('.ant-form-item').last().hasClass('ant-form-item-with-help')).toBeFalsy(); }); - it('no warning of initialValue', () => { + it('no warning of initialValue & getValueProps', () => { mount(
- + null}> ,