Skip to content

Commit

Permalink
fix: DatePicker HTMLInputElement props 전달하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
toothlessdev committed Aug 31, 2024
1 parent 8af0fa2 commit 494e44a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/form/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export interface DatePickerProps extends React.ComponentProps<"input"> {
height: string;
}

export const DatePicker = forwardRef<HTMLInputElement, DatePickerProps>(({ width, height }, ref) => {
return <DatePickerElement ref={ref} type="date" width={width} height={height}></DatePickerElement>;
export const DatePicker = forwardRef<HTMLInputElement, DatePickerProps>(({ width, height, ...rest }, ref) => {
return <DatePickerElement ref={ref} type="date" width={width} height={height} {...rest}></DatePickerElement>;
});

0 comments on commit 494e44a

Please sign in to comment.