Skip to content

Commit

Permalink
minor update to upgrade guide tone and content
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneplaine committed Oct 24, 2018
1 parent 9028281 commit 0f1973e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/pages/upgradeGuide/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,12 @@ const customFilter = createFilter({
See the [Advanced Guide](/advanced) for more details and examples.
## Storing strings with non multi select
## Simple Value
React-select v1 allowed to use strings for the \`value\` prop, but with v2 it
uses arrays or objects in all the cases. If you still want to use strings you
can easily do so by filtering the value out off all your options:
React-select v1 allowed you to use strings for the \`value\` prop, but with v2 we've deprecated this behaviour
in favor of a value prop that is always either an array of Options objects or an Options object.
If you still want to manage your selected values as a simple string you
can easily do so by applying a simple filter on your dataset as below.
~~~js
const options = [
Expand Down

0 comments on commit 0f1973e

Please sign in to comment.