vodkabears / Remodal

No longer actively maintained.
http://vodkabears.github.io/remodal/
MIT License
2.75k stars 769 forks source link

Page unscrollable after following link inside modal #237

Open drzel opened 8 years ago

drzel commented 8 years ago

Following a link inside a modal works, but the target page can't be scrolled without first pressing esc.

townmi commented 8 years ago

@drzel , hi do u done this problem? I got this too, touch is not ok, can not close modal , but after page refurbish,all works.

QandnotU commented 8 years ago

I'm having the same issue. If I click a link and go to a page and then hit the back button. The modal pops back up and I'm unable to scroll the modal. Seems to be fine in Chrome, experiencing the issue in Safari.

gambala commented 7 years ago

Having same problem. The reason is the html tag contains remodal-is-locked class, that prevents page scroll. Resolved it by removing remodal-is-locked class on pjax requests or browser history jumping.

In my case, I'm using Turbolinks gem for pjax-like logic. Code for turbolinks, resolving this problem (coffeescript):

$(document).on 'turbolinks:load', ->
  $('html').removeClass('remodal-is-locked')