Skip to content

fix(InfoTip): Fix ref errors from react-bootstrap for InfoTip components. - #299

Merged
jeff-phillips-18 merged 1 commit into
patternfly:masterfrom
dmiller9911:297-InfoTipFix
Apr 9, 2018
Merged

jeff-phillips-18 merged 1 commit into
patternfly:masterfrom
dmiller9911:297-InfoTipFix

Conversation

@dmiller9911

Copy link
Copy Markdown
Contributor

What:
react-bootstrap's Dropdown component passes, and tries to use, a ref passed to InfoTipMenu and
InfoTipToggle. Since SFC's cannot have refs passed to them, I converted these two components back to class components.

Link to Storybook:
https://rawgit.com/dmiller9911/patternfly-react/info-tip-fix-storybook/index.html

Additional issues:
fix #297

@dmiller9911
dmiller9911 requested a review from priley86 April 9, 2018 13:44
@coveralls

coveralls commented Apr 9, 2018 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 1124

  • 5 of 5 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 72.35%

Totals Coverage Status
Change from base Build 1105: 0.3%
Covered Lines: 1259
Relevant Lines: 1581

💛 - Coveralls

react-bootstrap's Dropdown component passes, and tries to use, a ref passed to InfoTipMenu and
InfoTipToggle. Since SFC's cannot have refs passed to them, I converted these two components back to
class components.

fix patternfly#297
Comment thread src/common/Timer.test.js
@@ -0,0 +1,71 @@
import Timer from './Timer';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

these tests were added to meet coverage requirements.

@jeff-phillips-18
jeff-phillips-18 merged commit dd9ff71 into patternfly:master Apr 9, 2018
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.

Infotip fails in Storyboard

4 participants