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

Modal Scroll Issues #4

Open
zackjohnlee opened this issue Aug 11, 2018 · 2 comments
Open

Modal Scroll Issues #4

zackjohnlee opened this issue Aug 11, 2018 · 2 comments

Comments

@zackjohnlee
Copy link
Owner

The modal scroll lock is still misbehaving. when the modal is closed, the toggle does not remove the toggle class.

@shanedg
Copy link
Collaborator

shanedg commented Aug 11, 2018

@zackjohnlee you still seeing this on master? or shopping-cart-features?

@zackjohnlee
Copy link
Owner Author

zackjohnlee commented Aug 12, 2018

@shanedgarrity its in shopping cart feature. so it only happens when i have the modifier "&& !this.state.modalOpen" in the conditional statement of the scroll toggle. that little bit is needed to prevent the toggle from flipping when the gallery is navigated. however, it prevents the class from being removed when the modal is closed, and thus flips the toggle to turn off when the modal is open, and turn on when its closed. the feature was reverted beck to just the original bug.

when I started trying to fix it i was getting all sorts of weird behavior when multiple modals were opened or closed in different orders, it was becoming unpredictable.

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

No branches or pull requests

2 participants