Skip to content

Conversation

@ibolton336
Copy link
Member

What: fixes #1016

Additional issues:

@patternfly-build
Copy link
Collaborator

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

@coveralls
Copy link

coveralls commented Feb 7, 2019

Pull Request Test Coverage Report for Build 4370

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.04%) to 80.21%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/patternfly-4/react-core/src/components/Nav/NavToggle.js 0 2 0.0%
Totals Coverage Status
Change from base Build 4367: -0.04%
Covered Lines: 4638
Relevant Lines: 5432

💛 - Coveralls

Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@tlabaj tlabaj merged commit 07097bc into patternfly:master Feb 8, 2019
@rhamilto
Copy link
Member

@ibolton336, this fix appears to have introduced a bug where previously expanded sections that have been collapsed are re-expanded on next navigate.

yikrsqwdlu

cc: @spadgett, @janwright73

value: this.props.defaultValue
};

componentWillReceiveProps(nextProps) {
Copy link
Member

Choose a reason for hiding this comment

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

this lifecycle method is soon to be deprecated. It works with our target version of React, but I recommend looking at getDerivedStateFromProps and componentDidUpdate.

https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops
https://egghead.io/lessons/react-refactor-componentwillreceiveprops-to-getderivedstatefromprops-in-react-16-3

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.

NavExpandable does not expand or collapse programmatically

7 participants