Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Conversation

@theKashey
Copy link
Contributor

Summary

fixes #25 - modals should disable body scroll to prevent issues on iOS and provide a more expected behaviour.
Together with focus lock, shadow and aria-hidden it makes Modal a real modal.

Test plan

Just open a modal - and scroll will disappear.

@theKashey
Copy link
Contributor Author

Package used - https://bundlephobia.com/result?p=react-remove-scroll@1.0.1, 1.6kb effective size (excluding tslib)

@gregberge
Copy link
Member

Awesome 💯!! Thanks!

@gregberge gregberge merged commit 23f35dd into smooth-code:master Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modal Dialog's "scroll lock" is incorrect

2 participants