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

feat: add ref forwarding to Panel component #649

Merged
merged 1 commit into from
May 11, 2022
Merged

Conversation

thuey
Copy link
Collaborator

@thuey thuey commented May 11, 2022

This PR allows a ref to be forwarded to the Panel's section, which makes it possible to sen programmatic focus to the Panel.

@thuey thuey requested a review from a team as a code owner May 11, 2022 14:34
Comment on lines +9 to +12
| ReactNode
| {
id?: string;
text: ReactElement<any>;
text: ReactNode;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After adding forwarding, typescript didn't like how ReactElement<any> didn't match PropTypes.node

@github-actions
Copy link
Contributor

Preview branch generated at https://forward-panel-ref.d1gko6en628vir.amplifyapp.com

@thuey thuey merged commit 77fc218 into develop May 11, 2022
@thuey thuey deleted the forward-panel-ref branch May 11, 2022 18:52
@github-actions
Copy link
Contributor

Preview branch generated at https://forward-panel-ref.d1gko6en628vir.amplifyapp.com

@scurker scurker mentioned this pull request May 17, 2022
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