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

Remove hidden input when multi select is empty #1253

Closed
VictorChen opened this issue Sep 26, 2016 · 2 comments
Closed

Remove hidden input when multi select is empty #1253

VictorChen opened this issue Sep 26, 2016 · 2 comments

Comments

@VictorChen
Copy link

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="">
@VictorChen
Copy link
Author

It's pretty inconsistent right now where the single value Select will not include the hidden input if empty, but the multi value Select does? I feel like this should be addressed.

@bladey
Copy link
Contributor

bladey commented May 27, 2020

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues / pull requests.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.

If you feel this issue / pull request is still relevant and you'd like us to review it, please leave a comment and we'll do our best to get back to you.

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

3 participants
@bladey @VictorChen and others