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

fix(Select): display selections data properly by Venefilyn · Pull Request #2848 · patternfly/patternfly-react · GitHub

fix(Select): display selections data properly - #2848

Merged
redallen merged 2 commits into
patternfly:masterfrom
Venefilyn:fix/select-2828
Sep 18, 2019
Merged

fix(Select): display selections data properly#2848
redallen merged 2 commits into
patternfly:masterfrom
Venefilyn:fix/select-2828

Conversation

Copy link
Copy Markdown
Contributor

What: This fixes selections prop being properly displayed if updated externally.

Additional issues: Fixes #2828

Venefilyn changed the title fix(Select): display selections properly fix(Select): display selections data properly Sep 5, 2019

Copy link
Copy Markdown
Collaborator

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

redallen requested a review from kmcfaul September 6, 2019 15:32

redallen left a comment

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

Just change an if statement and this looks good. Asking @kmcfaul for a review since she's familiar with TypeAhead,

});
}

if (prevProps.selections !== this.props.selections) {

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

Change to if (prevProps.selections !== this.props.selections && this.state.typeaheadActiveChild) {


if (prevProps.selections !== this.props.selections) {
this.setState({
typeaheadInputValue: (this.state.typeaheadActiveChild && this.state.typeaheadActiveChild.innerText)

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

Change to typeaheadInputValue: this.state.typeaheadActiveChild.innerText.

Copy link
Copy Markdown
Contributor Author

Thanks @redallen, moved check in the latest commit :)

kmcfaul left a comment

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

Looks good

redallen left a comment

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

Thanks as always @spytec . T-Shirt coming soon :)

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.

[PF4] Changing selections value outside Select does not update correctly in Select component

4 participants


Back | FazBrowse Home | New Git URL