Skip to content

Commit

Permalink
fix(Select): add forwardRef Select component
Browse files Browse the repository at this point in the history
Signed-off-by: seniorliketocode <[email protected]>
  • Loading branch information
capricorn-32 committed Dec 25, 2024
1 parent 891c885 commit 98ce6b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/base/Select/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Select as MuiSelect, type SelectProps as MuiSelectProps } from '@mui/material';
import React from 'react';

export function Select(props: MuiSelectProps): JSX.Element {
return <MuiSelect {...props} />;
}
const Select = React.forwardRef<HTMLDivElement, MuiSelectProps>((props, ref) => {
return <MuiSelect {...props} ref={ref} />;
});

export default Select;

0 comments on commit 98ce6b2

Please sign in to comment.