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

Empty many elements are not posting a blank string #128

Open
timriley opened this issue Aug 30, 2017 · 0 comments
Open

Empty many elements are not posting a blank string #128

timriley opened this issue Aug 30, 2017 · 0 comments

Comments

@timriley
Copy link
Contributor

Given a form with a many element like this:

many :collections do
  # fields here
end

When the many is empty, the form should post data like this: collections="" to indicate the emptiness of the structure. IIRC, this behaviour would be consistent with what we do for other array-like elements in Formalist?

Right now, this doesn't seem to be happening. Instead, the attribute is not submitted at all.

See #105 for a related issue. In the discussion there, you seem to indicate, @makenosound, that we're already posting an empty string. Perhaps the behaviour changed since then?

@timriley timriley changed the title Empty many elements are not returning a blank string Empty many elements are not posting a blank string Aug 30, 2017
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

No branches or pull requests

1 participant