Skip to content

Commit

Permalink
fix(list): fix list selection component arguments error (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
berber1016 committed Jan 4, 2022
1 parent fbbea02 commit 23eda81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/list/Selection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ const Selection: React.FC<SelectionProps> & { isSelection?: boolean } = (props)
!isEmpty(option.options) && (
<div className={`${prefixCls}--item`}>
{option?.groupId && <div className={`${prefixCls}--title`}>{option?.groupName}</div>}
<List options={option.options} />
<List {...rest} options={option.options} />
</div>
)
)}
{!isSelection && !isEmpty(selectionOptions) && <List options={selectionOptions as OptionProps[]} />}
{!isSelection && !isEmpty(selectionOptions) && <List {...rest} options={selectionOptions as OptionProps[]} />}
</div>
);
return selectionProvider(
Expand Down

1 comment on commit 23eda81

@vercel
Copy link

@vercel vercel bot commented on 23eda81 Jan 4, 2022

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.