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

feat(Tab): Added two new props: mountOnEnter and unmountOnExit by rebeccaalpert · Pull Request #2902 · patternfly/patternfly-react · GitHub

feat(Tab): Added two new props: mountOnEnter and unmountOnExit - #2902

Merged
dlabaj merged 2 commits into
patternfly:masterfrom
rebeccaalpert:tab-mounting
Sep 23, 2019
Merged

feat(Tab): Added two new props: mountOnEnter and unmountOnExit#2902
dlabaj merged 2 commits into
patternfly:masterfrom
rebeccaalpert:tab-mounting

Conversation

rebeccaalpert commented Sep 10, 2019
edited
Loading

Copy link
Copy Markdown
Member

When mountOnEnter is provided as a prop, TabContents will mount on the DOM as you click the corresponding tab. When unmountOnExit is provided, TabContents will unmount from the DOM when no longer visible.

Fixes #2609 and #1448.

Copy link
Copy Markdown
Collaborator

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

tlabaj 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

Can you add some integration test to verify these cahnges

dlabaj 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 just one comment.

When mountOnEnter is provided as a prop, TabContents will mount on the DOM as you click the corresponding tab. When unmountONExit is provided, TabContents will unmount from the DOM when no longer visible.

Fixes #2609

Copy link
Copy Markdown
Member Author

Added integration test and changed from null to undefined. Also fixed minor bug in Tabs where you couldn't actually apply an id to the main Tabs div.

Prior to bugfix, you couldn't add an id to a Tabs divs.

tlabaj 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

LGTM

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.

Feature: Tab component misses mountOnEnter, unmountOnExit properties

5 participants


Back | FazBrowse Home | New Git URL