Skip to content

Choices do not blank field when data isn't part of choices #72

@corradio

Description

@corradio

Consider the following schema from the playground:

{
  "type": "object",
  "keys": {
    "country": {
      "type": "string",
      "choices": [
        "Australia",
        "India",
        "United Kingdom",
        "United States"
      ]
    }
  }
}

When the data {"country": "XXX"} is passed, I'd expect the rendered UI selector to be blank (i.e. same as if the data was empty) as the passed input is not part of the choices. Right now, it selects the first item on the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions