Last active
May 7, 2018 05:07
-
-
Save theKashey/ccbc3b665af52a8838bf3921251fcc3a to your computer and use it in GitHub Desktop.
This file contains 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
import Locky from 'react-locky'; | |
const LockedModal = () => ( | |
// lock only scroll | |
<Locky noDefault events={{scroll:true}}> | |
// we are locking scroll only. There is no need to focus lock | |
Hey! You can only scroll only here | |
<div> scroll me </div> | |
</Locky> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment