fix Button and Input components
This commit is contained in:
@@ -39,4 +39,8 @@ const Component: React.ForwardRefRenderFunction<unknown, Props> = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Button = React.forwardRef<unknown, Props>(Component);
|
export const Button = React.forwardRef<HTMLButtonElement, Props>(
|
||||||
|
(props, ref) => {
|
||||||
|
return <Component {...props} ref={ref} />;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|||||||
@@ -27,4 +27,6 @@ const Component: React.ForwardRefRenderFunction<unknown, Props> = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Input = React.forwardRef<unknown, Props>(Component);
|
export const Input = React.forwardRef<HTMLInputElement, Props>((props, ref) => {
|
||||||
|
return <Component {...props} ref={ref} />;
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user