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

LightBox disables scroll, but doesn't enable it back when doing 'go back' in browser to router-linked page #309

Open
origami1024 opened this issue Feb 27, 2022 · 0 comments

Comments

@origami1024
Copy link

origami1024 commented Feb 27, 2022

  1. I am on page-1.
  2. From there, by clicking on router-link I get to page-2, having page-1 in browser history.
  3. On page-2 I open LightBox to see some pics fullscreen. It disables the body scroll (which is nice).
  4. I press 'go back' in the browser.
  5. I am on page-1 but scroll is disabled here((

Fixed locally by adding the following code to the page-2

destroyed () {
  document.querySelector('html').classList.remove('no-scroll')
  document.querySelector('body').classList.remove('vib-open')
},```
@origami1024 origami1024 changed the title Show Image disables scroll, but doesn't enable it back when doing 'go back' in browser to router-linked page LightBox disables scroll, but doesn't enable it back when doing 'go back' in browser to router-linked page Feb 27, 2022
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

1 participant