Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
364 commits
Select commit Hold shift + click to select a range
c117f03
Updating changelog
JedWatson Oct 20, 2015
2344fac
v0.8.1
JedWatson Oct 20, 2015
1012d22
Update README - fix typo and improve prop list
Oct 20, 2015
07ea8da
Merge pull request #530 from iqnivek/master
JedWatson Oct 21, 2015
b3ec996
Merge pull request #496 from dmatteo/asyncOptions
JedWatson Oct 21, 2015
089df08
Clearer name for callback handler
JedWatson Oct 22, 2015
6a1e00a
Updating build
JedWatson Oct 22, 2015
7ebd0d6
Updating changelog
JedWatson Oct 22, 2015
effa03d
v0.8.2
JedWatson Oct 22, 2015
c722bd9
docs(asyncOptions): now accepting Promises
dmatteo Oct 22, 2015
0a12b91
docs: use javascript syntax highlightning
dmatteo Oct 22, 2015
70b672a
Optimising option label rendering
JedWatson Oct 23, 2015
6c7a115
Updating dependencies
JedWatson Oct 23, 2015
e883307
Simplifying Option implementation
JedWatson Oct 23, 2015
b81f1e0
IE-fix: don't blur if document.activeElement is menuDOM
petetnt Oct 26, 2015
83f89ad
Merge pull request #533 from dmatteo/docs
JedWatson Oct 27, 2015
dd9a364
Merge pull request #539 from petetnt/petetnt/ie10-11-blur-fix
JedWatson Oct 27, 2015
a6d27d6
Fix math operations to use less --strict-math=on
vincentfretin Oct 27, 2015
4545bed
Updating build
JedWatson Oct 27, 2015
553ea3f
Updating changelog
JedWatson Oct 27, 2015
e035f1b
v0.8.3
JedWatson Oct 27, 2015
c430295
Merge pull request #542 from vincentfretin/patch-1
JedWatson Oct 27, 2015
04436dc
Updating changelog
JedWatson Oct 27, 2015
7ac6a34
v0.8.4
JedWatson Oct 27, 2015
07fe86d
Convert LESS to SCSS and re-organise
bassjacob Oct 28, 2015
06702d8
Merge pull request #522 from ooflorent/clear_inputValue_on_blur
JedWatson Oct 29, 2015
efb2385
Fixing rebinding of event handlers in every render
JedWatson Oct 29, 2015
c402d54
Merge remote-tracking branch 'origin/master'
JedWatson Oct 29, 2015
7e2ec4a
Fixing invalid reference after merge
JedWatson Oct 29, 2015
066a8de
Merge pull request #544 from subshad/add-sass
JedWatson Oct 29, 2015
89af12a
Updating Custom Option Component
JedWatson Oct 29, 2015
e4a0b32
Updating build
JedWatson Oct 29, 2015
ea2301a
Updating changelog
JedWatson Oct 29, 2015
8ce64a0
Updating bower dependencies, fixes #536
JedWatson Oct 29, 2015
193f19f
v0.9.0
JedWatson Oct 29, 2015
1a11d5a
Whitespace cleanup
JedWatson Nov 1, 2015
3394c1b
Updating dependencies
JedWatson Nov 1, 2015
259affb
Respecting valueKey and labelKey props in initValuesArray, fixes #555
JedWatson Nov 1, 2015
9a8c706
Autoloading with blank value, fixes #557
JedWatson Nov 1, 2015
eea6d4b
Cleaning up users data
JedWatson Nov 1, 2015
9d15b8b
Fixing missing valueKey reference
JedWatson Nov 1, 2015
49335a5
Providing default renderer to Value components for labelKey support
JedWatson Nov 1, 2015
d428b29
Fixing missing use of props.valueKey
JedWatson Nov 1, 2015
fc904c6
Adding contributors example w/ custom value & label props
JedWatson Nov 1, 2015
ad57e96
Updating build
JedWatson Nov 1, 2015
a28b707
Updating changelog
JedWatson Nov 1, 2015
d8fe544
v0.9.1
JedWatson Nov 1, 2015
4e3f61a
Moving aside current implementation
JedWatson Nov 2, 2015
fce8878
Starting rebuild
JedWatson Nov 2, 2015
9b5b007
Style fix; hover drop shadow should not display when disabled
JedWatson Nov 2, 2015
ba985f1
Cleaning up propTypes and defaultProps
JedWatson Nov 2, 2015
bd977cc
Cleaned up render() method
JedWatson Nov 2, 2015
15a06ac
Removing unused id
JedWatson Nov 2, 2015
c6f5c44
Adding methods to TODO
JedWatson Nov 2, 2015
f62a465
Merge branch 'master' into rebuild
JedWatson Nov 2, 2015
b29be17
Implementing focus()
JedWatson Nov 2, 2015
dd313f6
Adding focus and blur handling methods
JedWatson Nov 2, 2015
9b4c592
Implementing handleMouseDownOnArrow
JedWatson Nov 2, 2015
aa21896
Rendering menu options (WIP)
JedWatson Nov 2, 2015
fc6dff7
Rendering values
JedWatson Nov 2, 2015
cd086e1
Fixing value behaviour for single mode
JedWatson Nov 2, 2015
d45aafc
Cleaning up renderInput
JedWatson Nov 2, 2015
2318efc
Adding TODO
JedWatson Nov 2, 2015
409de7f
Implementing filterOptions
JedWatson Nov 2, 2015
fe843bb
Adding stripDiacritics util, thanks to PR #514
JedWatson Nov 2, 2015
6ae9fbe
Implementing ignoreAccents (strips diacritics when filtering), closes…
JedWatson Nov 3, 2015
11ec538
Temporarily disabling remote scripts for development
JedWatson Nov 3, 2015
45829d6
Cleanup & updating TODO
JedWatson Nov 3, 2015
d4cabc6
Cleaning up render methods & retaining last visible options array
JedWatson Nov 3, 2015
7bf5bd6
Implementing focused option navigation
JedWatson Nov 3, 2015
ee8f070
Fixing valueArray reference
JedWatson Nov 3, 2015
b704b18
Fixing filterOptions; excluding values and handling empty searches pr…
JedWatson Nov 3, 2015
0199a8a
Optimising filterOptions
JedWatson Nov 3, 2015
b14ac2d
Fixing reset behaviour in clearValue
JedWatson Nov 3, 2015
dd47dd1
Fixing placeholder w/ inputValue bug
JedWatson Nov 3, 2015
57cb624
Fixing focus behaviour on value remove in multiselect
JedWatson Nov 3, 2015
8611262
Correctly passing link target to window.open
JedWatson Nov 3, 2015
6c37a82
Cleaning up remove icon in MultiValue component
JedWatson Nov 3, 2015
bcad866
Fixing focus handling on option select
JedWatson Nov 3, 2015
77e1bab
Implementing pseudo-focus on single option select
JedWatson Nov 3, 2015
c3d5e01
Implementing keyboard events and navigation
JedWatson Nov 3, 2015
1d9d4cb
New escapeClearsValue prop
JedWatson Nov 3, 2015
80f5264
this.close -> this.closeMenu for clarity
JedWatson Nov 3, 2015
8fe93b3
Implementing componentDidUpdate and focus scroll handling
JedWatson Nov 3, 2015
4e57c56
Pseudo-focus via closeMenu when the arrow is clicked
JedWatson Nov 3, 2015
9254c42
Reset the input value when an option is selected
JedWatson Nov 3, 2015
9d9053e
Fixing focus scrolling behaviour on option hover
JedWatson Nov 3, 2015
3682bbb
Diacritics are case-sensitive so ignore accents before case
JedWatson Nov 3, 2015
4aac7e7
Initial Async implementation
JedWatson Nov 3, 2015
3b17a96
Adding loadingPlaceholder
JedWatson Nov 3, 2015
f5a1653
Consistently calling this.props.onInputChange
JedWatson Nov 3, 2015
39120fe
Removing autoload prop, adding minimumLength
JedWatson Nov 3, 2015
dc8b8cd
Fixing messages for no options / searching / type to search
JedWatson Nov 3, 2015
20e04f7
You can now disable in-select options filtering
JedWatson Nov 3, 2015
8ed5f30
Making the hidden field optional
JedWatson Nov 3, 2015
b235c14
Correctly initialising string values for multiselect fields
JedWatson Nov 3, 2015
fae95d6
New simpleValue prop (legacy mode)
JedWatson Nov 3, 2015
23e46b5
isLoading() isn't necessary anymore
JedWatson Nov 3, 2015
6b94929
Closing the menu when all options are selected (multiselect)
JedWatson Nov 3, 2015
df5ec98
Updating TODO
JedWatson Nov 3, 2015
0fcbb73
Cleaning up Option props and focusing on mouseMove
JedWatson Nov 3, 2015
7e31524
Supporting isLoading prop in the Async component
JedWatson Nov 3, 2015
3764a8d
Implementing external cache support
JedWatson Nov 3, 2015
b675724
responseHandler needs to check isMounted()
JedWatson Nov 3, 2015
ec7ce43
import / let / const cleanup
JedWatson Nov 3, 2015
81c96bb
New onMenuScrollToBottom event
JedWatson Nov 3, 2015
83bff6a
Simplifying examples for development
JedWatson Nov 4, 2015
a7adca3
Refactoring Async component to make logical flow clearer
JedWatson Nov 4, 2015
a5fe043
These have been reviewed
JedWatson Nov 4, 2015
1912fbe
Adding onLabelClick and href support to multiselect values
JedWatson Nov 4, 2015
8472daa
Merge remote-tracking branch 'origin/rebuild' into rebuild
JedWatson Nov 4, 2015
83cedec
Fixing issue after merge
JedWatson Nov 4, 2015
3743640
Implementing switch between single and multiselect for Contributors e…
JedWatson Nov 4, 2015
1c8c0f7
Merging SingleValue and MultiValue components, making classnames cons…
JedWatson Nov 4, 2015
a8bc300
Not interrupting right-click on values
JedWatson Nov 4, 2015
4a9312a
Better contrast for disabled state
JedWatson Nov 4, 2015
5f15a66
onClick shouldn't be used here, would fire the event twice
JedWatson Nov 4, 2015
be1e301
Always focus a visible option
JedWatson Nov 4, 2015
e9e30e5
Cleaning up examples
JedWatson Nov 4, 2015
958cd97
Removing reference version
JedWatson Nov 4, 2015
35884dd
Updating custom components example
JedWatson Nov 4, 2015
eec078f
Better support for numeric values
JedWatson Nov 4, 2015
e43c986
Updating Numeric Select example
JedWatson Nov 4, 2015
2c08ffa
Added prop defaults to README
lifehackett Nov 4, 2015
5871e41
Rearranging example components for clarity
JedWatson Nov 4, 2015
aa04d7f
Preventing automatic focusing of disabled options
JedWatson Nov 4, 2015
47bdf11
Switching cursor: not-allowed; to cursor: default;
JedWatson Nov 4, 2015
d534706
Adding disabled option example to the multiselect example
JedWatson Nov 4, 2015
c7903d7
Cleaning up examples
JedWatson Nov 4, 2015
b8d206c
Fixing clear value with simpleValue
JedWatson Nov 4, 2015
901b85f
Removing unFocus on mouseLeave (clashes with autoFocus first option)
JedWatson Nov 4, 2015
1e4de67
Improving custom render example
JedWatson Nov 4, 2015
7c92ad6
Finished cleaning up examples
JedWatson Nov 4, 2015
c5b827d
Fixing renderHiddenField
JedWatson Nov 4, 2015
9a54453
Cleaning up handleInputChange
JedWatson Nov 4, 2015
6390fbf
Fixing tab-to-select bug
JedWatson Nov 4, 2015
5c081fb
Adding className to Australian States example
JedWatson Nov 4, 2015
fa90638
Cleaning up expandValue
JedWatson Nov 4, 2015
b1310c0
Fixing error in getFocusableOption
JedWatson Nov 4, 2015
8ef986d
Cleanup
JedWatson Nov 4, 2015
f748f35
Fixing tests, adding TODO notes
JedWatson Nov 4, 2015
b0e2cd8
New build
JedWatson Nov 4, 2015
81049ee
Merge branch 'rebuild'
JedWatson Nov 4, 2015
91623e9
Updating readme with 1.0.0 progress
JedWatson Nov 4, 2015
49867bf
Updating build
JedWatson Nov 6, 2015
76d03c8
Updating Readme and Changelog
JedWatson Nov 6, 2015
803e9d7
v1.0.0-beta
JedWatson Nov 6, 2015
acda287
Flavours should not all be disabled
JedWatson Nov 6, 2015
7cf6f97
Removing old styles
JedWatson Nov 6, 2015
ede0032
Fixing Async response cache
JedWatson Nov 6, 2015
c7b5dd7
Adding props for custom styles
JedWatson Nov 6, 2015
994efda
Toggling menu on click when the component isn't searchable
JedWatson Nov 6, 2015
93ce079
Updating changelog and todo
JedWatson Nov 6, 2015
b16b301
Updating build
JedWatson Nov 6, 2015
02e3b39
v1.0.0-beta2
JedWatson Nov 6, 2015
8e86dba
added change for default styling location
zackify Nov 6, 2015
bf3ac63
Added !default to scss variables to easier customization.
naddeoa Nov 6, 2015
843733c
Merge pull request #577 from naddeoa/master
JedWatson Nov 7, 2015
f2a621e
Merge pull request #570 from lifehackett/readme_prop_defaults
JedWatson Nov 7, 2015
031efea
Merge pull request #574 from zackify/patch-1
JedWatson Nov 7, 2015
1a5f247
Prevent duplicate react keys when multiple options have the same value
JedWatson Nov 7, 2015
0acaa27
Preventing duplicate keys in values with duplicate values (!)
JedWatson Nov 7, 2015
238cd36
Adding autofocus prop, closes #563
JedWatson Nov 7, 2015
b2cf7ab
explicitly set line-height on values
jossmac Nov 7, 2015
01fbcba
Updating react-input-autosize, fixes rare infinite loop in Chrome
JedWatson Nov 7, 2015
72f647d
Fixing [object Object] in the hidden input value
JedWatson Nov 7, 2015
f3a4487
Updating build
JedWatson Nov 7, 2015
e0f064e
Updating changelog and notes
JedWatson Nov 7, 2015
83e382a
v1.0.0-beta3
JedWatson Nov 7, 2015
b0bc3e3
[POSSIBLE BREAKING CHANGE] reduce menu z-index
jossmac Nov 7, 2015
82dcc93
Multi: fix link colour bug
jossmac Nov 7, 2015
e984b9c
handle focus on linked values + remove outline
jossmac Nov 7, 2015
c9be239
move new example styles to default
jossmac Nov 7, 2015
1867de8
Updating build
JedWatson Nov 7, 2015
be98736
Updating changelog
JedWatson Nov 7, 2015
c653e97
v1.0.0-beta4
JedWatson Nov 7, 2015
6f11ad9
Fixing value serailizer
JedWatson Nov 7, 2015
e0d7186
Removing unnecessary check
JedWatson Nov 7, 2015
d2d642c
Updating build
JedWatson Nov 7, 2015
f4c66ae
Updating changelog
JedWatson Nov 7, 2015
15017fb
v1.0.0-beta5
JedWatson Nov 7, 2015
6cb6bd2
Update doc for asyncOptions (after replaced with Select.Async)
Nov 7, 2015
79bd929
Adding browserify-shim for react-dom, fixes #526
JedWatson Nov 8, 2015
2903bcf
Updating standalone usage example w/ npmcdn
JedWatson Nov 8, 2015
b2afb88
Updating build
JedWatson Nov 8, 2015
42940ce
Bumping react-input-autosize
JedWatson Nov 9, 2015
3436fd3
Documenting more changes, ref #571
JedWatson Nov 9, 2015
58f0536
Merge pull request #579 from TrkiSF2/master
JedWatson Nov 10, 2015
9a2abc7
Fixes #594 Navigation issues with non-searchable controls
MrLeebo Nov 13, 2015
8deadc8
Merge pull request #595 from MrLeebo/keyboard-navigation
JedWatson Nov 16, 2015
e3a89d1
Fix keyboard nav for non-searchable multi controls
MrLeebo Nov 16, 2015
1c117db
Merge pull request #599 from MrLeebo/patch-1
JedWatson Nov 18, 2015
37fcab6
Fix failing Value.js tests
MrLeebo Nov 20, 2015
f4a6fb6
Update wallaby.js
bruderstein Nov 8, 2015
edb91fd
Test removed - relies on changing value
bruderstein Nov 9, 2015
309f7c3
Tests removed - behaviour changed
bruderstein Nov 9, 2015
825b603
Two tests marked as "broken" that actually weren't :)
bruderstein Nov 9, 2015
d29743f
The hidden input is only rendered with a name property
bruderstein Nov 9, 2015
ebf7046
Wrong selector was used in test
bruderstein Nov 9, 2015
5778276
Add TODO marking a genuine regression
bruderstein Nov 9, 2015
983396f
Add `wireUpOnChangeToValue` option for `createControlWithWrapper`
bruderstein Nov 9, 2015
ad2ad88
value prop for multi should now be an array, or a single value
bruderstein Nov 20, 2015
4d5eaf5
Fix for value prop being set to zero
bruderstein Nov 20, 2015
ef21e38
Fix tests for param changes for onChange
bruderstein Nov 20, 2015
c7b2d84
Fix tests for `multi=true` with value prop set
bruderstein Nov 20, 2015
b74f272
More value prop / onChange test fixes
bruderstein Nov 20, 2015
f4810d9
Comma to create an item is no longer supported
bruderstein Nov 22, 2015
1dfa63a
Behaviour change: multi-select non-searchable remains open after select
bruderstein Nov 22, 2015
420a70a
When selection is empty, onChange now called with null
bruderstein Nov 22, 2015
73c7447
onChange called with null, and placeholder selector changed
bruderstein Nov 22, 2015
9767a8d
Fix bug where escape doesn't clear the input
bruderstein Nov 22, 2015
377b832
SimpleValue and delimiter tests fixed for 1.0
bruderstein Nov 22, 2015
3f102e5
The options are initially filtered, then again when control focused
bruderstein Nov 22, 2015
c76c80b
No public API for getInputNode()
bruderstein Nov 22, 2015
906a129
For disabled, input element is now rendered, just with a readonly
bruderstein Nov 22, 2015
801fada
onClick is now onMouseDown
bruderstein Nov 22, 2015
9ec273b
Wrong selectors were used in tests
bruderstein Nov 22, 2015
4c423c1
label renderer is now inside the .Select-value-label span
bruderstein Nov 22, 2015
b95c9c2
"Clicking away" is now controlled by blurring the text input
bruderstein Nov 22, 2015
a68eaea
When value is not in the options, it must be a full option
bruderstein Nov 22, 2015
f837b33
Temporarily disabling asyncOptions tests
bruderstein Nov 22, 2015
0e6d6e9
Merge pull request #610 from bruderstein/fix-tests-1.0
JedWatson Nov 22, 2015
1d348f2
Merge pull request #609 from MrLeebo/value-tests
JedWatson Nov 22, 2015
23b706f
Change input back to div
jamesamon Nov 26, 2015
ce61aab
Feature to scroll the viewport to display the menu
Nov 26, 2015
2d1f2c5
Create Async-tests
bruderstein Nov 28, 2015
9aa600b
Fix edge case bug with complete results and out-of-order responses
bruderstein Nov 28, 2015
5f6b7b6
Emulating DOM even for shallow renderer tests
bruderstein Nov 28, 2015
0a8e19a
Add Async tests using callbacks
bruderstein Nov 28, 2015
4a3b81f
minimumInput / ignoreCase / ignoreAccents async tests
bruderstein Nov 28, 2015
0e6ff41
Test for rejected promise
bruderstein Nov 28, 2015
8621180
Merge pull request #634 from bruderstein/async-tests
JedWatson Nov 29, 2015
2a38022
Merge pull request #631 from azaharakis/input-back-to-div
JedWatson Nov 29, 2015
fade9ca
Bumping dependencies
JedWatson Nov 29, 2015
662ea7b
Updating changelog
JedWatson Nov 29, 2015
13088f7
Updating build
JedWatson Nov 29, 2015
161f98b
v1.0.0-beta6
JedWatson Nov 29, 2015
cbba5c8
Temporarily (?) disabling test for hidden inputs after #631
JedWatson Nov 29, 2015
8b51dd2
Add a flag to enable viewport shift feature
Nov 29, 2015
84a7450
Fix bower.json css dist path
omgaz Nov 30, 2015
6f27590
Removing incorrect note about the dist css path, thanks @MalcolmDwyer
JedWatson Dec 3, 2015
4b8d128
Fix a problem with border inside table
rwrz Dec 7, 2015
212970c
Fix style path
grassick Dec 7, 2015
9d6f3b7
Less strict PropTypes for string placeholders to optionally allow Rea…
kromit Dec 9, 2015
791dea7
Merge pull request #655 from kromit/patch-1
JedWatson Dec 10, 2015
5e206b2
Merge pull request #653 from grassick/patch-1
JedWatson Dec 10, 2015
e60c6f4
Merge pull request #652 from rwrz/patch-1
JedWatson Dec 10, 2015
125ae6f
Resolving conflicts
JedWatson Dec 10, 2015
f799746
Merge branch 'omgaz-fix-bower-dist-css-path'
JedWatson Dec 10, 2015
e8b6bd0
Merge pull request #632 from azaharakis/show-fullmenu-in-viewport
JedWatson Dec 10, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"rules": {
"curly": [2, "multi-line"],
"jsx-quotes": 1,
"no-shadow": 0,
"no-trailing-spaces": 0,
"no-underscore-dangle": 0,
Expand All @@ -17,7 +18,6 @@
"quotes": [2, "single", "avoid-escape"],
"react/jsx-boolean-value": 1,
"react/jsx-no-undef": 1,
"react/jsx-quotes": 1,
"react/jsx-sort-prop-types": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
Expand Down
5 changes: 1 addition & 4 deletions .travis.yml
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
32 changes: 32 additions & 0 deletions CHANGES.md
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
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
Thanks for your interest in React-Select. All forms of contribution are
welcome, from issue reports to PRs and documentation / write-ups.

* We use node.js v4 for development and testing. Due to incompatibilities with
JSDOM and older versions of node.js, you'll need to use node 4 to run the
tests. If you can't install node v4 as your "default" node installation, you
could try using [nvm](https://github.com/creationix/nvm) to install multiple
versions concurrently.
* If you're upgrading your node.js 0.x environment, it's sometimes necessary
to remove the node_modules directory under react-select, and run npm install
again, in order to ensure all the correct dependencies for the new version
of node.js (as a minimum, you'll need to remove the `jsdom` module, and
reinstall that).

Before you open a PR:

* If you're planning to add or change a major feature in a PR, please ensure
Expand Down
137 changes: 135 additions & 2 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,143 @@
# React-Select

## v0.6.5 / 2015-08-26
## v1.0.0-beta6 / 2015-11-29

* Test suite complete and passing, with a couple of minor fixes thanks to @bruderstein

## v1.0.0-beta5 / 2015-11-08

* Fixes issues relating to serializing simple values into the hidden field

## v1.0.0-beta4 / 2015-11-08

* New default styles that match [Elemental UI](http://elemental-ui.com) and look right at home in the new [KeystoneJS Admin UI](http://keystonejs.com)

We're potentially going to ship some theme stylesheets in the future, shout out on GitHub if this interests you.

## v1.0.0-beta3 / 2015-11-08

* The selected value populated in the hidden field has been fixed (was `"[object Object]"` before)
* Added new `autofocus` prop
* Fixed duplicate key error for options and values with duplicate `value` properties
* SCSS variables now have `!default` so you can override them

## v1.0.0-beta2 / 2015-11-06

Changed since beta 1:

* Async options cache works again
* New style props for custom styling the component without modifying css classes: `style` `wrapperStyle` `menuStyle` `menuContainerStyle`
* The menu opens and closes correctly when `searchable={false}`, there is still some work to do on this use-case

## v1.0.0-beta1 / 2015-11-06

This is a complete rewrite. Major changes include:

* Everything is simpler (I'm nearly done and the source code is only 60% of the size of the last version)
* No more timeouts or weird handlers, the restructuring has let me make everything more straight-forward
* The options array is no longer preprocessed into state, just retrieved from props
* The values array is now initialised in the Options array during render, and not stored in state, which along with the change to options makes the component more reliable and fixes issues with props not updating correctly
* The component no longer stores its own value in state (ever) - it needs to be passed as a prop and handled with `onChange`.
* Complex values are now enabled by default (so you're passed the option object, not its value); you can enable the legacy mode with a prop
* The Value and Option components have been cleaned up as well for consistency
* The hidden `<input>` field is now optional and the component is better suited to use in a rich React.js app than it was
* You can disable options filtering to do the filtering externally with `onInputChange`
* Accents on characters can now be ignored
* The `asyncOptions` prop has been replaced by a new wrapper component: `Select.Async`

Note that "Tag mode" (creating options on the fly) isn't reimplemented yet.

A full guide to the breaking changes and new features will be written up soon. In the meantime please see the new examples.

## v0.9.1 / 2015-11-01

* added; new Contributors example w/ async options loading and custom value / label keys
* fixed; several issues with custom `valueKey` and `labelKey` props
* fixed; autoload now loads options with no search input

## v0.9.0 / 2015-10-29

* added; SCSS stylesheets!
* improved; Options rendering should be more performant
* breaking change; Custom `Option` components now need to pass their `option` prop to event handlers; see [this commit](https://github.com/JedWatson/react-select/commit/89af12a80a972794222b193a767f44234bbe9817) for an example of the required change.

## v0.8.4 / 2015-10-27

* fixed; LESS math operations now work with --strict-math=on, thanks [Vincent Fretin](https://github.com/vincentfretin)

## v0.8.3 / 2015-10-27

* fixed; IE issue where clicking the scrollbar would close the menu, thanks [Pete Nykänen](https://github.com/petetnt)

## v0.8.2 / 2015-10-22

* added; Promise support for `loadAsyncOptions`, thanks [Domenico Matteo](https://github.com/dmatteo)

## v0.8.1 / 2015-10-20

* fixed; `loadAsyncOptions` raises TypeError in setup, see #439 for details, thanks [Pancham Mehrunkar](https://github.com/pancham348)

## v0.8.0 / 2015-10-19

This release contains significant DOM structure and CSS improvements by @jossmac, including:

* no more `position: absolute` for inner controls
* `display: table` is used for layout, which works in IE8 and above, and [all other modern browsers](http://caniuse.com/#feat=css-table)
* less "magic numbers" used for layout, should fix various browser-specific alignment issues
* clear "x" control now animates in
* clearer `.Select--multi` className replaces `.Select.is-multi`
* new height & theme variables
* "dropdown" indicator chevron is no longer displayed for multi-select controls

There are no functional changes, but if you've forked the LESS / CSS to create your own theme you'll want to pay close attention to PR #527 when upgrading to this version.

## v0.7.0 / 2015-10-10

React Select is updated for React 0.14. If you're still using React 0.13, please continue to use `react-select@0.6.x`. There are no functional differences between v0.7.0 and v0.6.12.

Additionally, our tests now require Node.js 4.x. If you are developing `react-select`, please make sure you are running the latest version of node.

Thanks to @bruderstein, @dmatteo and @hull for their help getting these updates shipped!

## v0.6.12 / 2015-10-02

* added; `labelKey` and `valueKey` props, so you can now use different keys in `option` objects for the label and value
* fixed; additional `isMounted()` checks in timeouts
* fixed; componentDidUpdate timeout is reset correctly, see #208 and #434, thanks [Petr Gladkikh](https://github.com/PetrGlad)
* fixed; mousedown event on scrollbar in menu no longer hides it, thanks [Yishai Burt](https://github.com/burtyish)

## v0.6.11 / 2015-09-28

* added; `isLoading` prop, allows indication of async options loading in situations where more control is required, thanks [Jon Gautsch](https://github.com/jgautsch)

## v0.6.10 / 2015-09-24

* fixed; a build issue with the previous release that prevented the stylesheet being generated / included
* fixed; a LESS syntax issue, thanks [Bob Cardenas](https://github.com/bcardi)

## v0.6.9 / 2015-09-19

* added; `style` key for package.json, thanks [Stephen Wan](https://github.com/stephen)
* added; `onInputChange` handler that returns the current input value, thanks [Tom Leslie](https://github.com/lomteslie)
* fixed; simplifying handleKey function & preventDefault behaviour, thanks [davidpene](https://github.com/davidpene)
* fixed; Display spinner while auto-loading initial data, thanks [Ben Jenkinson](https://github.com/BenJenkinson)
* fixed; better support for touch events, thanks [Montlouis-Calixte Stéphane](https://github.com/bulby97)
* fixed; prevent value splitting on non-multi-value select, thanks [Alan R. Soares](https://github.com/alanrsoares)

## v0.6.8 / 2015-09-16

* fixed; broader range of allowed prereleases for React 0.14, including rc1
* fixed; preventing backspace from navigating back in the browser history, thanks [davidpene](https://github.com/davidpene)

## v0.6.7 / 2015-08-28

* fixed; missing styles for `.Select-search-prompt` and `.Select-searching` issues, thanks [Jaak Erisalu](https://github.com/jaakerisalu) and [davidpene](https://github.com/davidpene)

## v0.6.6 / 2015-08-26

* fixed; issue in Chrome where clicking the scrollbar would close the menu, thanks [Vladimir Matsola](https://github.com/vomchik)

## v0.6.4 / 2015-08-24
## v0.6.5 / 2015-08-24

* fixed; completely ignores clicks on disabled items, unless the target of the click is a link, thanks [Ben Stahl](https://github.com/bhstahl)

Expand Down
Loading