Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

Turbolinks.enableProgressBar() returns undefined #677

Open
NeoElit opened this issue Apr 26, 2017 · 0 comments
Open

Turbolinks.enableProgressBar() returns undefined #677

NeoElit opened this issue Apr 26, 2017 · 0 comments

Comments

@NeoElit
Copy link

NeoElit commented Apr 26, 2017

I'm experiencing a weird 'undefined' return value from Turbolinks.enableProgressBar(); in case when
server renders page without redirection in response to a post request.
Any work around for this issue?

Steps to replicate:

  1. Post a form
  2. Render action (without redirection; common for a case of form validation error)
  3. In JS console try Turbolinks.enableProgressBar();

You'll see undefined

Rails: 4.2.6
Turbolinks: 2.5.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant