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 19, 2021
1 parent 99925dc commit 9114a56
Show file tree
Hide file tree
Showing 2 changed files with 7 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
1 change: 1 addition & 0 deletions packages/store-ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type { CheckboxProps } from './atoms/Checkbox'

export { default as Overlay } from './atoms/Overlay'
export type { OverlayProps } from './atoms/Overlay'

export { default as Select } from './atoms/Select'
export type { SelectProps } from './atoms/Select'

Expand Down

0 comments on commit 9114a56

Please sign in to comment.