Skip to content

Commit 98ce6b2

Browse files
committed
fix(Select): add forwardRef Select component
Signed-off-by: seniorliketocode <abhishek234543@gmail.com>
1 parent 891c885 commit 98ce6b2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/base/Select/Select.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Select as MuiSelect, type SelectProps as MuiSelectProps } from '@mui/material';
2+
import React from 'react';
23

3-
export function Select(props: MuiSelectProps): JSX.Element {
4-
return <MuiSelect {...props} />;
5-
}
4+
const Select = React.forwardRef<HTMLDivElement, MuiSelectProps>((props, ref) => {
5+
return <MuiSelect {...props} ref={ref} />;
6+
});
67

78
export default Select;

0 commit comments

Comments
 (0)