Skip to content

Commit 8a184b2

Browse files
committed
chore(ComboBox): clear final props
1 parent b2fe3ac commit 8a184b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/fields/ComboBox/ComboBox.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,8 @@ export const ComboBox = forwardRef(function ComboBox<T extends object>(
15051505
</ComboBoxWrapperElement>
15061506
);
15071507

1508-
const finalProps = { ...props, styles: fieldStyles };
1508+
const { children: _, ...propsWithoutChildren } = props;
1509+
const finalProps = { ...propsWithoutChildren, styles: fieldStyles };
15091510

15101511
// Ensure labelProps has the for attribute for label-input linking
15111512
if (!finalProps.labelProps) {

0 commit comments

Comments
 (0)