fix: Form.Item hidden no working (#25336)

close #25335
This commit is contained in:
偏右 2020-07-01 14:12:35 +08:00 committed by GitHub
parent 2575a4f51a
commit 5b7104cc9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 6 deletions

View File

@ -186,7 +186,7 @@ function FormItem(props: FormItemProps): React.ReactElement {
[`${prefixCls}-item-has-error-leave`]:
!help && domErrorVisible && prevValidateStatusRef.current === 'error',
[`${prefixCls}-item-is-validating`]: mergedValidateStatus === 'validating',
[`${prefixCls}-hidden`]: hidden,
[`${prefixCls}-item-hidden`]: hidden,
};
// ======================= Children =======================

View File

@ -5,7 +5,7 @@ exports[`Form Form item hidden 1`] = `
class="ant-form ant-form-horizontal"
>
<div
class="ant-row ant-form-item ant-form-hidden"
class="ant-row ant-form-item ant-form-item-hidden"
>
<div
class="ant-col ant-form-item-control"

View File

@ -66,10 +66,6 @@
margin-bottom: 0;
}
&-hidden {
display: none;
}
// ==============================================================
// = Label =
// ==============================================================