Skip to content

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

@wise-king-sullyman

Description

@wise-king-sullyman

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions