Skip to content

bug(ClipboardCopy): change children type to string - #9743

Merged
tlabaj merged 5 commits into
patternfly:mainfrom
gitdallas:bug/9711-change-clipboard-copy-children-type
Nov 15, 2023
Merged

bug(ClipboardCopy): change children type to string#9743
tlabaj merged 5 commits into
patternfly:mainfrom
gitdallas:bug/9711-change-clipboard-copy-children-type

Conversation

@gitdallas

@gitdallas gitdallas commented Oct 13, 2023

Copy link
Copy Markdown
Contributor

closes #9711

the type of ReactNode isn't truly supported as anything passed in will be converted to a string. this caused confusion for at least one product.

none of the examples were attempting to use anything other than a string, and i don't imagine a use case for doing so. I feel like the "text to copy" should actually have been placed in a different prop (text, textToCopy, ?) instead of using children, but this would be a breaking change.

the product that came across this was attempting to create a "header/title/summary" of the text to be copied, this will be possible via #9713

Loading
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.

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

8 participants