forked from JedWatson/react-select
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from JedWatson/master
Updating the react select
- Loading branch information
Showing
74 changed files
with
14,838 additions
and
14,342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
- "0.11" | ||
- "0.12" | ||
- "iojs-v2.5.0" | ||
- "v4" | ||
script: | ||
- npm run coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Changes | ||
|
||
## Breaking Changes | ||
|
||
Major API changes to Component props, SingleValue and Value have been merged | ||
|
||
The component is now "controlled", which means you have to pass value as a prop and always handle the `onChange` event. See https://facebook.github.io/react/docs/forms.html#controlled-components | ||
|
||
Using values that aren't in the `options` array is still supported, but they have to be full options (previous versions would expand strings into `{ label: string, value: string }`) | ||
|
||
Options & Value components get their label as their Children | ||
|
||
new `simpleValue` prop for when you want to deal with values as strings or numbers (legacy behaviour, defaults to false). onChange no longer receives an array of expanded values as the second argument. | ||
|
||
`onOptionLabelClick` -> `onValueClick` | ||
|
||
## New Select.Async Component | ||
|
||
`loadingPlaceholder` prop | ||
`autoload` changed to `minimumInput` and now controls the minimum input to load options | ||
`cacheAsyncResults` -> `cache` (new external cache support) - defaults to true | ||
|
||
## Fixes & Other Changes | ||
|
||
new `ignoreAccents` prop (on by default), thanks [Guilherme Guerchmann](https://github.com/Agamennon) | ||
new `escapeClearsValue` prop (on by default) | ||
bug where the filter wouldn't be reset after blur | ||
complex option values are much better supported now, won't throw duplicate key errors and will serialize to the input correctly | ||
|
||
## Notes | ||
|
||
`undefined` default props are no longer declared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.