Skip to content

Commit 5214d06

Browse files
author
叶文俊
committed
fix: use only the attributes that are already defined
1 parent 23fa3da commit 5214d06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SelectInput/Content/SingleContent.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ const SingleContent = React.forwardRef<HTMLInputElement, SharedContentProps>(
4141
if (displayValue && selectContext?.flattenOptions) {
4242
const option = selectContext.flattenOptions.find((opt) => opt.value === displayValue.value);
4343
if (option?.data) {
44-
const { label, value, className, style, key, ...rest } = option.data;
44+
const { className, style } = option.data;
4545

4646
restProps = {
4747
...restProps,
48-
...rest,
4948
title: getTitle(option.data),
5049
className: clsx(restProps.className, className),
5150
style: { ...restProps.style, ...style },

0 commit comments

Comments
 (0)