blur() is called on all of the form elements modified by peteshow, including checkbox, radio, and select controls
special() can return a promise, which will delay submission of the form until it is resolved.
Where did these changes come from?
Trying to use this gem on a form rendered by react, I needed a way to issue a change event for every field changed by peteshow. These events needed to be triggered right after the value was changed, and could not be batched.
Some of the form elements I needed to fill were only rendered in the dom if some related fields were populated. Also, changing some fields would trigger async calls to server-side validators/option fetchers. In order to use the Fill out and Submit feature, I needed a way to halt submission of the form until I was able to clean up any unpopulated values in the form.
This is a fork off of the
0.8.6
release tag.What's in this PR
blur()
is called on all of the form elements modified by peteshow, including checkbox, radio, and select controlsspecial()
can return a promise, which will delay submission of the form until it is resolved.Where did these changes come from? Trying to use this gem on a form rendered by react, I needed a way to issue a change event for every field changed by peteshow. These events needed to be triggered right after the
value
was changed, and could not be batched.Some of the form elements I needed to fill were only rendered in the dom if some related fields were populated. Also, changing some fields would trigger async calls to server-side validators/option fetchers. In order to use the
Fill out and Submit
feature, I needed a way to halt submission of the form until I was able to clean up any unpopulated values in the form.