FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(ClipboardCopy): Update if children change by Venefilyn · Pull Request #2849 · patternfly/patternfly-react · GitHub

fix(ClipboardCopy): Update if children change - #2849

Merged
redallen merged 1 commit into
patternfly:masterfrom
Venefilyn:fix/clipboardcopy-update-children-2846
Sep 6, 2019
Merged

fix(ClipboardCopy): Update if children change#2849
redallen merged 1 commit into
patternfly:masterfrom
Venefilyn:fix/clipboardcopy-update-children-2846

Conversation

Copy link
Copy Markdown
Contributor

What: This updates ClipboardCopy to update component if children changes

Additional issues: fixes #2846

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-2849.surge.sh

};

componentDidUpdate = (prevProps: ClipboardCopyProps, prevState: ClipboardCopyState) => {
if (prevProps.children !== this.props.children) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This check will work because we technically only support children being a string (despite it's type being ReactNode).

redallen merged commit b5252f6 into patternfly:master Sep 6, 2019

Copy link
Copy Markdown
Collaborator

Your changes have been released in:

  • @patternfly/react-core@3.99.4
  • @patternfly/react-docs@4.11.7
  • @patternfly/react-inline-edit-extension@2.11.25
  • demo-app-ts@2.22.4
  • @patternfly/react-table@2.20.5
  • @patternfly/react-topology@2.8.24
  • @patternfly/react-virtualized-extension@1.2.13

Thanks for your contribution! 🎉

Venefilyn deleted the fix/clipboardcopy-update-children-2846 branch November 13, 2024 12:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

ClipboardCopy doesn't update when children are updated

4 participants


Back | FazBrowse Home | New Git URL