Skip to content
This repository has been archived by the owner on May 21, 2020. It is now read-only.

Wrapped drawer in div to prevent scroll and click underneath it. #51

Closed
wants to merge 14 commits into from

Conversation

pc9
Copy link

@pc9 pc9 commented Jun 7, 2018

Fixes #24

@Redmega
Copy link
Collaborator

Redmega commented Jun 15, 2018

HI, thanks for your contribution! I will get the chance to review the PR this weekend.

if (open) {
document.body.style.overflowY = 'hidden';
} else {
document.body.style.overflowY = 'auto';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a fan of modifying the overflow styles of body. This is a very invasive way to go about this. Can you think of any alternatives to this? I'll try and do some testing this week to this regard as well...

@@ -64,6 +65,7 @@
"1-liners": "^0.4.0",
"prop-types": "^15.5.10",
"react-hammerjs": "^1.0.1",
"react-motion": "^0.5.2"
"react-motion": "^0.5.2",
"release-it": "^7.4.7"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be in dev dependencies.

@@ -12,6 +12,7 @@
"patch-release": "npm version patch && npm publish && git push --follow-tags",
"minor-release": "npm version minor && npm publish && git push --follow-tags",
"major-release": "npm version major && npm publish && git push --follow-tags",
"release": "release-it",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool tool! Didn't know this existed. If you could, please rewrite the other -release scripts to use release-it with its various options. Otherwise just remove release-it and I'll implement on my own.

@Redmega
Copy link
Collaborator

Redmega commented Jul 19, 2018

Hey @pc9, do you mind reverting those version changes? I'd like to get this merged but the versions might cause issues.

@Redmega
Copy link
Collaborator

Redmega commented Oct 2, 2019

Seems like you have pushed it to your own npm fork, so I'll close this PR. Please open a new one without any of the version or package json changes if you want to have them merged back in.

@Redmega Redmega closed this Oct 2, 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.

Click event bubbles through overlay
2 participants