Skip to content

Commit

Permalink
fix: fixing component
Browse files Browse the repository at this point in the history
  • Loading branch information
Bento Pereira committed Aug 12, 2021
1 parent 456e29e commit daf2a59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/store-ui/src/atoms/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
}

const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select(
{ testId = 'store-select', ...props },
{ children, testId = 'store-select', ...props },
ref
) {
return <select ref={ref} data-store-select data-testid={testId} {...props} />
return (
<select ref={ref} data-store-select data-testid={testId} {...props}>
{children}
</select>
)
})

export default Select

0 comments on commit daf2a59

Please sign in to comment.