Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward the ref in the Button component #76

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Sep 15, 2023

This was an issue for MAS, where we need the ref to autofocus some buttons.

I had to do weird type assertions because of the generic as property, but the type looks correct, and the ref is properly forwarded.

@sandhose sandhose requested a review from a team as a code owner September 15, 2023 12:07
@sandhose sandhose requested review from andybalaam and SimonBrandner and removed request for a team September 15, 2023 12:07
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 15, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c83737b
Status: ✅  Deploy successful!
Preview URL: https://daed3ea9.compound-web.pages.dev
Branch Preview URL: https://quenting-button-forward-ref.compound-web.pages.dev

View logs

@sandhose sandhose force-pushed the quenting/button-forward-ref branch from a1200a3 to c83737b Compare September 15, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants