fix Button and Input components

This commit is contained in:
João Geonizeli
2021-08-30 18:34:13 -03:00
parent 02abc03d00
commit fabd718174
2 changed files with 8 additions and 2 deletions

View File

@@ -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} />;
}
);

View File

@@ -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} />;
});