Skip to content

Commit

Permalink
feat(Select): Created select component
Browse files Browse the repository at this point in the history
  • Loading branch information
bramvanhoutte committed Sep 5, 2021
1 parent dcab2cb commit aa37881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ const Input = React.forwardRef<Select<Option>, Props>(
) => {
const selectClassNames = classNames(cssReset.ventura, styles.select, className);

const showNoOptionsMessage = () => noOptionsMessage;

const handleChange = (newValue: Option | OptionsType<Option> | null) => {
if (onChange) {
onChange(newValue as Option | Option[]);
}
};

const showNoOptionsMessage = () => noOptionsMessage;

return (
<Select
ref={ref}
Expand Down

0 comments on commit aa37881

Please sign in to comment.