rails-ujs icon indicating copy to clipboard operation
rails-ujs copied to clipboard

Issues collection

Open Fudoshiki opened this issue 9 years ago • 3 comments

  • [ ] 1. Can't visit again new form after create (request canceled from browser side), is it bug? Second request on new form fine after first failed

  • [ ] 2. Each response from render :js in controller action append script tag in bottom of body, is it planned?

  • [x] 3. Each submit form send double commit params https://github.com/rails/rails-ujs/pull/7 image image

jquery_ujs don't have this issues

  • [ ] 4. In IE11 debug console error SCRIPT445, all scripts failing https://github.com/rails/rails-ujs/pull/14

Fudoshiki avatar Dec 05 '16 10:12 Fudoshiki

Thank you for your reporting. The third issue is a bug that I have already acknowledged.

Could you give some more descriptions on the first two issues?

liudangyi avatar Dec 05 '16 10:12 liudangyi

a) click on link to new form (new action) image image

b) submit creation (request to create action) image

c) In create action I have redirect_to (same with respond_with location) image image

d) after successful creation and redirect I want visit new form again image

e) click on link to new form again and Turbolinks prevent xhr request image image f) click more time and new form will load image image

Fudoshiki avatar Dec 05 '16 21:12 Fudoshiki

I have create.js.erb for respond_to format.js Each time when response from create action returning javascript, its appends as script tag in bottom of body image

With jquery-rails no appends

Fudoshiki avatar Dec 05 '16 21:12 Fudoshiki