Skip to content
This repository was archived by the owner on Sep 13, 2017. It is now read-only.

Conversation

derekprior
Copy link

@derekprior derekprior commented Jan 18, 2017

This polyfill prevents the submission of forms (both remote and
standard) if there are blank required inputs. This behavior is
implemented natively by most modern browsers, the sole holdout being
Safari.

When the behavior is handled natively by the browser, the user is shown
appropriate error messages. When the behavior falls through the
polyfill, there is no notification to the user as to why the form now
fails to submit. To the user, the form simply appears broken. The source
of this behavior is difficult for developers to track down.

jquery-ujs has a longstanding issue on this polyfill. With the move
to a new gem for ujs in Rails 5.1 we can make this breaking change and
remove the incomplete polyfill.

This polyfill prevents the submission of forms (both `remote` and
standard) if there are blank required inputs. This behavior is
implemented natively by most modern browsers, the sole holdout being
Safari.

When the behavior is handled natively by the browser, the user is shown
appropriate error messages. When the behavior falls through the
Polyfill, there is no notification to the user as to why their form now
fails to submit. To the user, the form simply appears broken. The source
of this behavior is difficult for developers to track down.

jquery-ujs has a [longstanding issue][1]on this polyfill. With the move
to a new gem for ujs in Rails 5.1 we can make this breaking change and
remove the incomplete polyfill.

[1]:rails/jquery-ujs#319
@derekprior
Copy link
Author

Closes #13

@rafaelfranca rafaelfranca merged commit 49bfa84 into rails:master Jan 18, 2017
@rafaelfranca
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants