mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix: preserve warning in Gorm.Item (#25518)
This commit is contained in:
parent
71447da264
commit
24abadd994
@ -210,6 +210,7 @@ function FormItem(props: FormItemProps): React.ReactElement {
|
||||
'labelAlign',
|
||||
'labelCol',
|
||||
'normalize',
|
||||
'preserve',
|
||||
'required',
|
||||
'validateFirst',
|
||||
'validateStatus',
|
||||
|
@ -563,10 +563,10 @@ describe('Form', () => {
|
||||
expect(wrapper.find('.ant-form-item').last().hasClass('ant-form-item-with-help')).toBeFalsy();
|
||||
});
|
||||
|
||||
it('no warning of initialValue & getValueProps', () => {
|
||||
it('no warning of initialValue & getValueProps & preserve', () => {
|
||||
mount(
|
||||
<Form>
|
||||
<Form.Item initialValue="bamboo" getValueProps={() => null}>
|
||||
<Form.Item initialValue="bamboo" getValueProps={() => null} preserve={false}>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
</Form>,
|
||||
|
Loading…
Reference in New Issue
Block a user