Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/field/ValueTypeToComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ const ValueTypeToComponentMap: Record<string, ProRenderFieldPropsType> = {
typeof props.placeholder === 'string' ? props.placeholder : undefined;
return (
<FieldCascader
{...props}
mode={props.mode}

Choose a reason for hiding this comment

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

medium

The mode prop is already included when spreading {...props}. Passing it again explicitly is redundant and can be removed for cleaner code.

text={text}
placeholder={placeholder}
Expand All @@ -577,6 +578,7 @@ const ValueTypeToComponentMap: Record<string, ProRenderFieldPropsType> = {
typeof props.placeholder === 'string' ? props.placeholder : undefined;
return (
<FieldCascader
{...props}
mode={props.mode}

Choose a reason for hiding this comment

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

medium

The mode prop is already included when spreading {...props}. Passing it again explicitly is redundant and can be removed for cleaner code.

text={text}
placeholder={placeholder}
Expand Down
Loading