Skip to content

Missing empty values #38

Description

@pnikolov

How to reproduce
Use the following demo - http://jsfiddle.net/9xfdvLbL/

Conditions
Typing some copy in the input text and by selecting one or more categories, you get:

{"filtering":{"title":"john doe","categories":["1","3"]}}

Problem
When submitting the form without entering any values in the form fields. You get:

{"filtering":{"title":""}}

Expectation
When submitting the form with no values in the fields to get:

{"filtering":{"title":"","categories":[]}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions