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

Button component does not forward refs in compound-web #219

Closed
sandhose opened this issue Sep 14, 2023 · 1 comment
Closed

Button component does not forward refs in compound-web #219

sandhose opened this issue Sep 14, 2023 · 1 comment

Comments

@sandhose
Copy link
Member

The component in compound-web is not forwarding the ref to the underlying component.
This is an issue because when I tried to use Radix's Alert dialog, it could not autofocus on the button, because it was missing the ref.

I did not do it back in this PR (element-hq/compound-web#47) because it was hard to properly type, because of the generic as prop.

cc @germain-gg

@kerryarchibald
Copy link
Contributor

Closed by element-hq/compound-web@e7f673d

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

No branches or pull requests

2 participants