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

Do not enable disabled elements for XHR redirects #31441

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

mrhead
Copy link
Contributor

@mrhead mrhead commented Dec 14, 2017

Summary

Fixes #29473.
Depends on: turbolinks/turbolinks-rails#28

Before

27210987-8e142704-5256-11e7-812d-7c2b9a1b10df

After

rails-ujs-redirect

@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @sgrif (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

This repository is being automatically checked for code quality issues using Code Climate. You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a Pull Request is considered ready to review.

Please see the contribution instructions for more information.

@mrhead
Copy link
Contributor Author

mrhead commented Dec 14, 2017

Related PR: turbolinks/turbolinks-rails#28

@sgrif
Copy link
Contributor

sgrif commented Jan 12, 2018

r? @rafaelfranca

Sorry I have no clue who to assign to this. I am not the right person to review this.

@mrhead
Copy link
Contributor Author

mrhead commented Sep 27, 2018

I've just updated this PR with tests for rails-ujs.

@mrhead mrhead force-pushed the rails-ujs-xhr-redirects branch 2 times, most recently from dc4428f to 58d22c5 Compare September 27, 2018 08:44
@mrhead
Copy link
Contributor Author

mrhead commented Sep 27, 2018

@rafaelfranca I've added tests and updated the PR summary to better demonstrate the issue. Could you please review it? Thank you!

@rafaelfranca rafaelfranca merged commit a27c784 into rails:master Sep 28, 2018
@mrhead mrhead deleted the rails-ujs-xhr-redirects branch September 28, 2018 06:07
@mrhead
Copy link
Contributor Author

mrhead commented Sep 28, 2018

@rafaelfranca Thank you!

@Laykou
Copy link

Laykou commented Nov 23, 2018

@mrhead Do you know when new release 5.2.2 is planned? This merge request fixes our issue and we'd like to use it. Currently we can install rails gem from master branch, but we find it very risk and only as temporary solution. If you happen to know planned date for 5.2.2 it would help us a lot in our planning. Thanks a lot!

@mxlje
Copy link

mxlje commented May 10, 2019

Am I correct in that this is actually not part of 5.2.2 or 5.2.3? I just updated to 5.2.3 and I still see the old behavior.

Ok, it looks like the rails side of things was merged, but the turbolinks gem has yet to release a new version to include turbolinks/turbolinks-rails#28 :(

@mrhead
Copy link
Contributor Author

mrhead commented May 10, 2019 via email

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

Successfully merging this pull request may close these issues.

rails-ujs prematurely enables disabled elements for XHR requests with redirects
6 participants