Skip to content

Commit

Permalink
fix(form): fix legacy/form className (#1566)
Browse files Browse the repository at this point in the history
Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Nov 30, 2021
1 parent e9c9c3c commit 1ef2bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/legacy/form/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Item: React.FC<FormItemProps> = (props: FormItemProps) => {
colon = _colon,
labelAlign = _labelAlign,
} = props;
const prefixCls = usePrefixCls('field', customizePrefixCls);
const prefixCls = usePrefixCls('field-legacy', customizePrefixCls);
const { validateTrigger: contextValidateTrigger = 'onChange' } = useContext(FieldContext);
const mergedValidateTrigger = validateTrigger === undefined ? contextValidateTrigger : validateTrigger;

Expand Down
2 changes: 1 addition & 1 deletion src/legacy/form/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@icon-prefix-cls-legacy: ~'@{component-prefix}-icon';
@form-prefix-cls-legacy: ~'@{component-prefix}-form-legacy';
@field-prefix-cls-legacy: ~'@{component-prefix}-field';
@field-prefix-cls-legacy: ~'@{component-prefix}-field-legacy';

// form tokens map
@info-color: @color-font-form-notes;
Expand Down

1 comment on commit 1ef2bb9

@vercel
Copy link

@vercel vercel bot commented on 1ef2bb9 Nov 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.