Skip to content

Remove hidden input when multi select is empty #1253

@VictorChen

Description

@VictorChen

When using a multi select with joinValues, the hidden input never gets removed.

eg:

<Select
  name="field-name"
  value={value}
  options={options}
  multi
  simpleValue
  delimiter="|"
  joinValues
/>

When the select is empty/cleared, the input still exists (with empty string as value):

<input type="hidden" name="field-name" value="">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions