Skip to content

Commit

Permalink
fix: remove unexpect label tag (#3996)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Oct 18, 2023
1 parent 31d2c8e commit e8707e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/antd/src/form-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ export const BaseItem: React.FC<React.PropsWithChildren<IFormItemProps>> = ({
{asterisk && requiredMark === true && (
<span className={`${prefixCls}-asterisk`}>{'*'}</span>
)}
<label>{label}</label>
<label htmlFor={props.labelFor}>{label}</label>
{!asterisk && requiredMark === 'optional' && !optionalMarkHidden && (
<span className={`${prefixCls}-optional`}>
Expand Down
1 change: 0 additions & 1 deletion packages/next/src/form-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ export const BaseItem: React.FC<React.PropsWithChildren<IFormItemProps>> = (
{asterisk && (
<span className={cls(`${prefixCls}-asterisk`)}>{'*'}</span>
)}
<label>{label}</label>
<label htmlFor={props.labelFor}>{label}</label>
</span>
</div>
Expand Down

0 comments on commit e8707e9

Please sign in to comment.