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

fix(tabs): tab not becoming active after click #615

Merged

Conversation

jhujhul
Copy link

@jhujhul jhujhul commented May 28, 2020

Related issue

Reference to the issue

Fix #501

I had to modify jest config and update react version to 16.8 to run test locally.

@jhujhul
Copy link
Author

jhujhul commented Jun 3, 2020

Je viens de réaliser qu'avec cette PR la props activeIndex du composant Tabs va être supprimée. Ca pourrait être un breaking change pour les projets qui utilisent cette prop. C'est fort possible que ça soit le cas vu que dans la dernière version du toolkit c'est une prop obligatoire.
Je pense donc la laisser mais en optionnelle histoire d'éviter un breaking change, même si a priori elle n'a pas trop d'utilité vu que la tab active est gérée par le state de TabsCore. Qu'en pensez-vous ?

@youf-olivier
Copy link
Contributor

Je viens de réaliser qu'avec cette PR la props activeIndex du composant Tabs va être supprimée. Ca pourrait être un breaking change pour les projets qui utilisent cette prop. C'est fort possible que ça soit le cas vu que dans la dernière version du toolkit c'est une prop obligatoire.
Je pense donc la laisser mais en optionnelle histoire d'éviter un breaking change, même si a priori elle n'a pas trop d'utilité vu que la tab active est gérée par le state de TabsCore. Qu'en pensez-vous ?

Du coup on perd la possibilité de changer l'activeIndex depuis l'extérieur ?

Du coup optionnel ça me semble pas mal

@youf-olivier
Copy link
Contributor

Tu coup tu remets optionnel et tu résouds les coms et conflits ?

tag nous quand c'est ok :)

@jhujhul
Copy link
Author

jhujhul commented Jun 5, 2020

@youf-olivier Je viens de push. J'ai lancé un commentaire par rapport à TabsStatelessProps

Copy link
Contributor

@xballoy xballoy left a comment

Choose a reason for hiding this comment

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

LGTM

@youf-olivier youf-olivier merged commit 09bc846 into AxaFrance:master Jun 18, 2020
@jhujhul jhujhul deleted the fix/tab-not-becoming-active-after-click branch June 19, 2020 08:15
@jhujhul
Copy link
Author

jhujhul commented Jun 19, 2020

Thanks guys!

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.

[Tabs] Tab does not become active when user clicks on it (+ types definition)
6 participants