Skip to content

Commit

Permalink
🩹 fix select props heritage
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineKM committed Jan 31, 2024
1 parent c3396b9 commit 079303a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-fans-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tonightpass/kitchen": patch
---

Fix Select props heriting
3 changes: 2 additions & 1 deletion packages/kitchen/src/components/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const SelectComponent = styled(
...props
}: SelectProps) => {
return (
<SelectContainer size={size} {...props}>
<SelectContainer size={size}>
{label && <SelectLabel>{label}</SelectLabel>}
<SelectSelectorContainer>
{prefix && <SelectPrefix>{prefix}</SelectPrefix>}
Expand All @@ -59,6 +59,7 @@ const SelectComponent = styled(
placeholder={placeholder}
disabled={disabled}
defaultValue={placeholder}
{...props}
>
{placeholder && (
<option disabled value={placeholder}>
Expand Down

0 comments on commit 079303a

Please sign in to comment.