From 10cb87b6958c566aa2f78896fe3cef8c828918b0 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 2 Oct 2024 16:34:16 -0700 Subject: [PATCH] use context to pick default pressable component --- src/components/Button.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 26b0f89f66..06de6890bc 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -468,6 +468,7 @@ export const Button = React.forwardRef( role="button" accessibilityHint={undefined} // optional {...rest} + // @ts-expect-error ref type ref={ref} aria-label={label} aria-pressed={state.pressed}