mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
fix refs
This commit is contained in:
parent
f34fd0bd00
commit
5b58223f9d
@ -75,7 +75,7 @@ interface Props {
|
||||
onPressStart: (e: PressEvent) => void;
|
||||
[index: string]: unknown;
|
||||
}
|
||||
export const Button = forwardRef<HTMLAnchorElement, Props>(
|
||||
export const Button = forwardRef<HTMLButtonElement, Props>(
|
||||
(
|
||||
{
|
||||
variant = "default",
|
||||
@ -91,7 +91,7 @@ export const Button = forwardRef<HTMLAnchorElement, Props>(
|
||||
},
|
||||
ref
|
||||
) => {
|
||||
const buttonRef = useObjectRef<HTMLAnchorElement>(ref);
|
||||
const buttonRef = useObjectRef<HTMLButtonElement>(ref);
|
||||
const { buttonProps } = useButton(
|
||||
{ onPress, onPressStart, ...rest },
|
||||
buttonRef
|
||||
|
Loading…
Reference in New Issue
Block a user