Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

ajax-form ignores empty fields #59

Closed
eximius313 opened this issue Apr 16, 2015 · 2 comments
Closed

ajax-form ignores empty fields #59

eximius313 opened this issue Apr 16, 2015 · 2 comments
Labels
Milestone

Comments

@eximius313
Copy link

I have a simple form containing two input fields.
When one of them is empty, ajax-form doesn't mention it in the request.
I think, that ajax-form should put its name with empty value instead of ignoring it, because this has serious implications with validation.

@rnicholus
Copy link
Owner

The intent was to submit form data via XHR following the same rules as a native form submit. It looks like this particular detail was missed. I'll fix in the next release.

Currently, I am (very slowly due to other commitments) working on #55. Once that is complete, I'll be sure to work on this before releasing ajax-form 2.0.

@rnicholus rnicholus added the bug label Apr 16, 2015
@rnicholus rnicholus added this to the 2.0.0 milestone Apr 16, 2015
@rnicholus
Copy link
Owner

This is fixed in the 2.0.0 branch, to be released with v2.

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

No branches or pull requests

2 participants