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

Bug - Clipboard Copy - children typed as ReactNode, but not actually fully compatible with that type #9711

Closed
wise-king-sullyman opened this issue Oct 5, 2023 · 0 comments · Fixed by #9743
Assignees
Milestone

Comments

@wise-king-sullyman
Copy link
Contributor

wise-king-sullyman commented Oct 5, 2023

Describe the problem
Trying to pass a non number/string/array as the child of an expandable clipboard copy results in it being stringified to [object Object] in the "preview" area.

How do you reproduce the problem?
https://codesandbox.io/s/dazzling-kare-yh9prw?file=/index.tsx

Expected behavior
Either the type of children should be updated to reflect what is actually fully supported, or we should fix the component to actually support the possible inputs of children as it is currently typed.

Screenshots
image

Fix should be to change the type to what is actually currently supported in the component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants