Skip to content

Commit

Permalink
fix(sanity): use ref prop
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Oct 4, 2022
1 parent 9111c44 commit 7aff925
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/sanity/src/desk/components/IntentButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ export const IntentButton = forwardRef(function IntentButton(
)

return props.disabled ? (
<Button {...props} as="a" role="link" aria-disabled="true" />
<Button
{...props}
as="a"
ref={ref as React.ForwardedRef<HTMLButtonElement>}
role="link"
aria-disabled="true"
/>
) : (
<Button
{...restProps}
Expand Down

0 comments on commit 7aff925

Please sign in to comment.