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(mobile): Scroll after logout #902

Merged
merged 1 commit into from
Feb 14, 2019
Merged

fix(mobile): Scroll after logout #902

merged 1 commit into from
Feb 14, 2019

Conversation

drazik
Copy link
Contributor

@drazik drazik commented Feb 14, 2019

The problem was that after logout on the mobile app, we couldn't scroll anymore. This was caused by the fact that when we open the cozy-bar, it sets an overflow: hidden (and other stuff to prevent scroll) on the body. But on logout, we simply destroy the cozy-bar DOM node. So we still had the overflow: hidden on the body. Now I just erase all styles applied on body on logout, but we may think of a better API like destroy or unmount directly in the cozy-bar to handle this correctly.

Copy link
Contributor

@kosssi kosssi left a comment

Choose a reason for hiding this comment

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

Can you create an issue on cozy-bar?

@drazik drazik merged commit b794e58 into release-0.12.0 Feb 14, 2019
@drazik drazik deleted the fix-scroll branch February 14, 2019 15:05
@drazik
Copy link
Contributor Author

drazik commented Feb 14, 2019

See cozy/cozy-bar#460

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.

2 participants