Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[React] DP-13409: Fix onclick function not being called in Tabs Container #529

Merged

Conversation

avrilpearl
Copy link
Contributor

@avrilpearl avrilpearl commented Apr 9, 2019

Patch
Fixed

@clairesunstudio
Copy link
Contributor

tab and key up/down also needs to trigger handleClick

@@ -76,9 +84,9 @@ const Tab = React.forwardRef((props, ref) => (
e.target.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'center' });
if (activeTab !== tabIdent) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this can be removed, it's condition is never true?

Copy link
Contributor

@clairesunstudio clairesunstudio left a comment

Choose a reason for hiding this comment

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

sorry wait, i think we need to expose the tab text to be able to use on the buget side. Currently, onTabChange is returning content. i think we need to create a ref for the project side to be able to select the inner text of the tab

@clairesunstudio
Copy link
Contributor

added necessary in budget in this pr --> https://github.com/massgov/budget/pull/207

@clairesunstudio clairesunstudio merged commit 8ecdfe6 into develop Apr 10, 2019
@avrilpearl avrilpearl deleted the react/DP-13409--FixTabsContainer-OnClickCallback branch April 11, 2019 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants