brousalis / peteshow

a customizable javascript framework for filling out forms with fake data
MIT License
36 stars 13 forks source link

Call Blur on All Controls #16

Closed gsilis closed 7 years ago

gsilis commented 7 years ago

This is a fork off of the 0.8.6 release tag.

What's in this PR

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.

brousalis commented 7 years ago

Awesome! sorry for not maintaining this project, haven't had to deal with a 5-step registration in a while 😆