Replies: 2 comments 1 reply
-
Looks like that codesandbox is also at TS 4.1.3, and those are TS checked files, so I'm not sure why you're getting an error when there is no error in the codesandbox. Can you provide a reproduction? |
Beta Was this translation helpful? Give feedback.
0 replies
-
whenever i use forwardRef with anything react-aria, the first line in the component is always (using button component in this instance) is import { useObjectRef } from "@react-aria/utils";
export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
let buttonRef = useObjectRef(ref);
let { buttonProps, isPressed } = useButton(props, buttonRef);
let { focusProps, isFocusVisible } = useFocusRing();
// ...rest of component i havnt had any typescript ref issues since. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Copied and pasted the
Button
code from https://codesandbox.io/s/unruffled-pascal-xo2ilk foruseMenu
and got:typescript version: 4.1.3
Beta Was this translation helpful? Give feedback.
All reactions