Skip to content

Commit

Permalink
chore: pass only props to BaseSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Dec 21, 2021
1 parent 4a4cd5d commit ab6cf27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re

// Children
children,

...restProps
} = props;

const mergedId = useId(id);
Expand Down Expand Up @@ -461,7 +463,7 @@ const Cascader = React.forwardRef<CascaderRef, InternalCascaderProps>((props, re
return (
<CascaderContext.Provider value={cascaderContext}>
<BaseSelect
{...props}
{...restProps}
// MISC
ref={ref as any}
id={mergedId}
Expand Down

1 comment on commit ab6cf27

@vercel
Copy link

@vercel vercel bot commented on ab6cf27 Dec 21, 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.