jossmac / react-scrolllock

🔒 Prevent scroll on the <body />
https://jossmac.github.io/react-scrolllock
MIT License
451 stars 43 forks source link

ScrollLock never mounts in v2 #14

Closed michaeltaranto closed 6 years ago

michaeltaranto commented 6 years ago

Migrating from the internal canUseDom to the version from exenv has resulted in ScrollLock never mounting. This is due to the casing being different on the export from exenv.

Renaming all usages of canUseDom to canUseDOM seems to fix the issue.