Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not hide modal on back button if Turbolinks enabled
There doesn't seem to be any way to prevent Turbolinks from reloading and replacing the entire browser window when a user clicks Back (since turbolinks:before-visit is not triggered for _when navigating by history_), So, rather than hiding the displayed modal when clicking Back (and then having to reload the page), we keep the Modal displayed while Turbolinks does its stuff in the background (including progress bar). See turbolinks/turbolinks#264 for a related issue (suggested `turbolinks:before-history-change` event).
- Loading branch information