fix refs
This commit is contained in:
parent
f34fd0bd00
commit
5b58223f9d
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ interface Props {
|
||||||
onPressStart: (e: PressEvent) => void;
|
onPressStart: (e: PressEvent) => void;
|
||||||
[index: string]: unknown;
|
[index: string]: unknown;
|
||||||
}
|
}
|
||||||
export const Button = forwardRef<HTMLAnchorElement, Props>(
|
export const Button = forwardRef<HTMLButtonElement, Props>(
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
variant = "default",
|
variant = "default",
|
||||||
|
@ -91,7 +91,7 @@ export const Button = forwardRef<HTMLAnchorElement, Props>(
|
||||||
},
|
},
|
||||||
ref
|
ref
|
||||||
) => {
|
) => {
|
||||||
const buttonRef = useObjectRef<HTMLAnchorElement>(ref);
|
const buttonRef = useObjectRef<HTMLButtonElement>(ref);
|
||||||
const { buttonProps } = useButton(
|
const { buttonProps } = useButton(
|
||||||
{ onPress, onPressStart, ...rest },
|
{ onPress, onPressStart, ...rest },
|
||||||
buttonRef
|
buttonRef
|
||||||
|
|
Loading…
Add table
Reference in a new issue