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

Allow any type in value #25

Closed
bashmish opened this issue Dec 9, 2014 · 2 comments
Closed

Allow any type in value #25

bashmish opened this issue Dec 9, 2014 · 2 comments

Comments

@bashmish
Copy link

bashmish commented Dec 9, 2014

HTML options tag doesn't allow value to be any other type than string. But this component should allow this because it is usually more convenient to make values as integer ids. Developers shouldn't always make conversion from string to int and vice versa themselves.

jacobdfriedmann added a commit to jacobdfriedmann/react-select that referenced this issue Dec 10, 2014
… and values.

If a multi-select, passes an array to the onChange function (instead of concatenated string)
which is empty when nothing is selected.

If a single select, passes the single value to the onChange function and null if nothing
is selected.
jacobdfriedmann added a commit to jacobdfriedmann/react-select that referenced this issue Jan 4, 2015
… and values.

If a multi-select, passes an array to the onChange function (instead of concatenated string)
which is empty when nothing is selected.

If a single select, passes the single value to the onChange function and null if nothing
is selected.
jacobdfriedmann added a commit to jacobdfriedmann/react-select that referenced this issue Jan 12, 2015
… and values.

If a multi-select, passes an array to the onChange function (instead of concatenated string)
which is empty when nothing is selected.

If a single select, passes the single value to the onChange function and null if nothing
is selected.
@RusAlex
Copy link

RusAlex commented Apr 10, 2015

IMHO it must stay as strict as possible and do not allow non-strings to be values.

@dcousens
Copy link
Collaborator

dcousens commented May 7, 2015

Closed in favour of #45.

@dcousens dcousens closed this as completed May 7, 2015
@brianreavis brianreavis mentioned this issue Jun 1, 2015
12 tasks
bkoltai pushed a commit to bkoltai/react-select that referenced this issue Sep 20, 2017
…13-patch

Update to latest upstream master
Methuselah96 added a commit to Methuselah96/react-select that referenced this issue Nov 22, 2020
…m Select (JedWatson#25)

* Use memoization function to access components

* Create thirty-islands-remain.md

* Rename method

* Make method

* Delete thirty-islands-remain.md
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