-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Reveal multiple opened: body scrolls top #11704
Comments
Here is an updated codepen with 6.5.3: https://codepen.io/DanielRuf/pen/moeXEB Your codepen uses 6.5.1 |
Can you test #11705? This would be great. |
Tested on my side and aprooved #11705 |
@DanielRuf btw, should i close this issue ? Sorry i'm new here, this was my first issue. |
You did nothing wrong. Thanks for creating the issue and the feedback. |
What should happen?
When using multiple opened reveals, the html position scroll shoudn't change on reveal open
What happens instead?
The second and every other opened reveal sets html css top value to 0 and page jumps top
Possible Solution
If you allready have one reveal opened, the next one shoudn't call _disableScroll() and on close it shoudn't call _enableScroll()
This simple fix should help
foundation.reveal.js, change line 447 to:
foundation.reveal.js, change line 274 to:
Test Case and/or Steps to Reproduce (for bugs)
Test Case: https://codepen.io/anon/pen/WmQXvN
Reveal open button is on the bottom of the page
How to reproduce:
Your Environment
Checklist
The text was updated successfully, but these errors were encountered: