diff --git a/.changeset/c8c696c3/changes.json b/.changeset/c8c696c3/changes.json deleted file mode 100644 index 47dece547e..0000000000 --- a/.changeset/c8c696c3/changes.json +++ /dev/null @@ -1 +0,0 @@ -{ "releases": [{ "name": "react-select", "type": "patch" }], "dependents": [] } diff --git a/.changeset/c8c696c3/changes.md b/.changeset/c8c696c3/changes.md deleted file mode 100644 index 71b68d1ddc..0000000000 --- a/.changeset/c8c696c3/changes.md +++ /dev/null @@ -1 +0,0 @@ -- Add base entrypoint back diff --git a/.changeset/c8c696c4/changes.json b/.changeset/c8c696c4/changes.json deleted file mode 100644 index 47dece547e..0000000000 --- a/.changeset/c8c696c4/changes.json +++ /dev/null @@ -1 +0,0 @@ -{ "releases": [{ "name": "react-select", "type": "patch" }], "dependents": [] } diff --git a/.changeset/c8c696c4/changes.md b/.changeset/c8c696c4/changes.md deleted file mode 100644 index 2b81a6c455..0000000000 --- a/.changeset/c8c696c4/changes.md +++ /dev/null @@ -1,3 +0,0 @@ -- Performance improvement: menu items are built when the menu opens, not in the constructor -- Fix for iOS focus management when clearing the select value -- Change aria-live assertive to polite diff --git a/package.json b/package.json index 14bba66d27..6ea6c89b05 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "postinstall": "preconstruct dev", "changeset": "changeset", "version-packages": "changeset bump", - "publish-packages": "changeset release" + "release": "yarn build && changeset release" }, "files": [ "dist", diff --git a/packages/react-select/CHANGELOG.md b/packages/react-select/CHANGELOG.md index 5e58bd904e..d9d43b036d 100644 --- a/packages/react-select/CHANGELOG.md +++ b/packages/react-select/CHANGELOG.md @@ -1,22 +1,34 @@ # react-select +## 3.0.4 + +### Patch Changes + +- [cd8c3090](https://github.com/JedWatson/react-select/commit/cd8c3090) [#3586](https://github.com/JedWatson/react-select/pull/3586) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Add base entrypoint back + +- [#3569](https://github.com/JedWatson/react-select/pull/3569) Thanks [@vadimka123](https://github.com/vadimka123) - Performance improvement: menu items are built when the menu opens, not in the constructor + +- [#3326](https://github.com/JedWatson/react-select/pull/3326) Thanks [@stevemao](https://github.com/stevemao) Fix for iOS focus management when clearing the select value + +- [#3532](https://github.com/JedWatson/react-select/pull/3532) Thanks [@alisonhall](https://github.com/alisonhall)! - Change aria-live assertive to polite + ## 3.0.3 -- [patch] [](https://github.com/JedWatson/react-select/commit/): - - Remove base entrypoint to fix rollup dependency resolution issue +- Remove base entrypoint to fix rollup dependency resolution issue ## 3.0.2 -- [patch] [](https://github.com/JedWatson/react-select/commit/): - - fix erroneous build +- fix erroneous build ## 3.0.1 -- [patch] [](https://github.com/JedWatson/react-select/commit/): + +- [patch][](https://github.com/JedWatson/react-select/commit/): - Add README.md file for npm ## 3.0.0 -- [major] [9ad152b](https://github.com/JedWatson/react-select/commit/9ad152b) [#3574](https://github.com/JedWatson/react-select/pulls/3574) Thanks [@gwyneplaine](https://github.com/gwyneplaine): + +- [major][9ad152b](https://github.com/JedWatson/react-select/commit/9ad152b) [#3574](https://github.com/JedWatson/react-select/pulls/3574) Thanks [@gwyneplaine](https://github.com/gwyneplaine): - Upgrade emotion dependency from 9.x to 10.x [#3321](https://github.com/JedWatson/react-select/pull/3321) - Normalize Values [#3416](https://github.com/JedWatson/react-select/pull/3416) - Separate entrypoints for Async, Creatable and makeAnimated [#3541](https://github.com/JedWatson/react-select/pull/3541) @@ -24,158 +36,174 @@ - required react peer-dependecy of 16.8 ## v2.4.4 / 2019-05-27 + ### BugFixes -* [#3540] Fixed active styles previously being applied to disabled options. Thanks [@risenforces](https://github.com/risenforces) -* [#3563] Fixed IME composition bugs in non Chrome browsers. Thanks [@jwilander](https://github.com/jwilander) + +- [#3540] Fixed active styles previously being applied to disabled options. Thanks [@risenforces](https://github.com/risenforces) +- [#3563] Fixed IME composition bugs in non Chrome browsers. Thanks [@jwilander](https://github.com/jwilander) ## v2.4.3 / 2019-03-17 + ### Bugfixes -* [#3492](https://github.com/JedWatson/react-select/pull/3492) Add labels to fields to make inspection. [@destructobeam](https://github.com/destructobeam) -* [#3442](https://github.com/JedWatson/react-select/pull/3442) Ignore keydown events on `Enter` in IME. [@sat0yu](https://github.com/sat0yu). -* [#3343](https://github.com/JedWatson/react-select/pull/3343) fix lint issues. [@JoshMcCullough](https://github.com/JoshMcCullough). -* [#3498](https://github.com/JedWatson/react-select/pull/3498) Fix async type. [@mufasa71](https://github.com/mufasa71) -* [#3436](https://github.com/JedWatson/react-select/pull/3436) Allow Node as placeholder [@eemeli](https://github.com/eemeli). + +- [#3492](https://github.com/JedWatson/react-select/pull/3492) Add labels to fields to make inspection. [@destructobeam](https://github.com/destructobeam) +- [#3442](https://github.com/JedWatson/react-select/pull/3442) Ignore keydown events on `Enter` in IME. [@sat0yu](https://github.com/sat0yu). +- [#3343](https://github.com/JedWatson/react-select/pull/3343) fix lint issues. [@JoshMcCullough](https://github.com/JoshMcCullough). +- [#3498](https://github.com/JedWatson/react-select/pull/3498) Fix async type. [@mufasa71](https://github.com/mufasa71) +- [#3436](https://github.com/JedWatson/react-select/pull/3436) Allow Node as placeholder [@eemeli](https://github.com/eemeli). ## v2.4.2 / 2019-03-11 + ### Bug fixes -* [#3446](https://github.com/JedWatson/react-select/pull/3446) Fix bug with select input value not being selectable. Thanks [kangweichan](https://github.com/kangweichan). -* [#3445](https://github.com/JedWatson/react-select/pull/3446) Fix accessibility bug. Disabled options are now focusable and announced by screen-readers but not selectable. Thanks [sarahbethfederman](https://github.com/sarahbethfederman). + +- [#3446](https://github.com/JedWatson/react-select/pull/3446) Fix bug with select input value not being selectable. Thanks [kangweichan](https://github.com/kangweichan). +- [#3445](https://github.com/JedWatson/react-select/pull/3446) Fix accessibility bug. Disabled options are now focusable and announced by screen-readers but not selectable. Thanks [sarahbethfederman](https://github.com/sarahbethfederman). ## Updates -* Fixed typo in style docs. Thanks [thiagodebastos](https://github.com/thiagodebastos). -* [#3460](https://github.com/JedWatson/react-select/pull/3460) Added description for actionTypes to docs. Thanks [mikekellyio](https://github.com/mikekellyio) + +- Fixed typo in style docs. Thanks [thiagodebastos](https://github.com/thiagodebastos). +- [#3460](https://github.com/JedWatson/react-select/pull/3460) Added description for actionTypes to docs. Thanks [mikekellyio](https://github.com/mikekellyio) ## v2.4.1 / 2019-02-18 + ### Bug fixes -* [#3432](https://github.com/JedWatson/react-select/pull/3432) Fix bug with select menu's not working on mobile. + +- [#3432](https://github.com/JedWatson/react-select/pull/3432) Fix bug with select menu's not working on mobile. ## v2.4.0 / 2019-02-15 + ### Bug fixes -* [#3427](https://github.com/JedWatson/react-select/pull/3427) remove focusOption() invocation on ENTER press if the menu is not open. -* [#3402](https://github.com/JedWatson/react-select/pull/3402) fix menu scroll being reset on focus of a select with an open menu in ie11. See [#3342](https://github.com/JedWatson/react-select/issues/3342) for details. Thanks [timothypage](https://github.com/timothypage) -* [#3420](https://github.com/JedWatson/react-select/pull/3420) fixed select menu being opened on click, when openMenuOnClick is false. Thanks [caleb](https://github.com/caleb) and [rscotten](https://github.com/rscotten) -* [#3419](https://github.com/JedWatson/react-select/pull/3419) fixed bug with ScrollCaptor operating on an undefined scrollTarget. Thanks [iulian-radu-at](https://github.com/iulian-radu-at) -* [#3411](https://github.com/JedWatson/react-select/pull/3411) fix bug where Enter key press on select with a closed menu wouldn't propagate up. Resolves [#2217](https://github.com/JedWatson/react-select/issues/2217). -* [#3407](https://github.com/JedWatson/react-select/pull/3407) remove unnecessary aria-roles from menu and options. This is now all handled by our aria-live implementation. Resolves [#3355](https://github.com/JedWatson/react-select/issues/3355). Thanks [sarahbethfederman](https://github.com/sarahbethfederman). -* [#3393](https://github.com/JedWatson/react-select/pull/3393), fix aria live announcement text for removing a selected option. Thanks [msharkeyiii](https://github.com/msharkeyiii). -* [#3350](https://github.com/JedWatson/react-select/pull/3350) Updated to 0.91 of flow. Updated types to pass stricter type checking, in later versions of flow. Thanks [DragonWW](https://github.com/DragorWW) +- [#3427](https://github.com/JedWatson/react-select/pull/3427) remove focusOption() invocation on ENTER press if the menu is not open. +- [#3402](https://github.com/JedWatson/react-select/pull/3402) fix menu scroll being reset on focus of a select with an open menu in ie11. See [#3342](https://github.com/JedWatson/react-select/issues/3342) for details. Thanks [timothypage](https://github.com/timothypage) +- [#3420](https://github.com/JedWatson/react-select/pull/3420) fixed select menu being opened on click, when openMenuOnClick is false. Thanks [caleb](https://github.com/caleb) and [rscotten](https://github.com/rscotten) +- [#3419](https://github.com/JedWatson/react-select/pull/3419) fixed bug with ScrollCaptor operating on an undefined scrollTarget. Thanks [iulian-radu-at](https://github.com/iulian-radu-at) +- [#3411](https://github.com/JedWatson/react-select/pull/3411) fix bug where Enter key press on select with a closed menu wouldn't propagate up. Resolves [#2217](https://github.com/JedWatson/react-select/issues/2217). +- [#3407](https://github.com/JedWatson/react-select/pull/3407) remove unnecessary aria-roles from menu and options. This is now all handled by our aria-live implementation. Resolves [#3355](https://github.com/JedWatson/react-select/issues/3355). Thanks [sarahbethfederman](https://github.com/sarahbethfederman). +- [#3393](https://github.com/JedWatson/react-select/pull/3393), fix aria live announcement text for removing a selected option. Thanks [msharkeyiii](https://github.com/msharkeyiii). +- [#3350](https://github.com/JedWatson/react-select/pull/3350) Updated to 0.91 of flow. Updated types to pass stricter type checking, in later versions of flow. Thanks [DragonWW](https://github.com/DragorWW) ### Updates -* [#3370](https://github.com/JedWatson/react-select/pull/3370) Updated memoize-one dependency to 5.0.0. Thanks [adam187](https://github.com/adam187) -* [#3366](https://github.com/JedWatson/react-select/pull/3366/files) Update build tooling, to leverage babel 7. Thanks [DragonWW](https://github.com/DragorWW) + +- [#3370](https://github.com/JedWatson/react-select/pull/3370) Updated memoize-one dependency to 5.0.0. Thanks [adam187](https://github.com/adam187) +- [#3366](https://github.com/JedWatson/react-select/pull/3366/files) Update build tooling, to leverage babel 7. Thanks [DragonWW](https://github.com/DragorWW) ## v2.3.0 / 2019-01-18 ### Bug fixes -* [#3315](https://github.com/JedWatson/react-select/pull/3315) add RAF call to Collapse component getRef() such that getBoundingClientRect() is invoked consistently. -* [#3275](https://github.com/JedWatson/react-select/pull/3275/files) wrap String invocation around inputValue to avoid calling toLowerCase on invalid elements. thanks [tavareshenrique](https://github.com/tavareshenrique) -* [#3357](https://github.com/JedWatson/react-select/pull/3357), fix loadOptions call in Async select to always pass in a string for the inputValue. -* [#3346](https://github.com/JedWatson/react-select/pull/3346) Revert work done in CSP nonce PR [#3260](https://github.com/JedWatson/react-select/pull/3260) to unblock react-select usage in an SSR setting. Users who need nonce support still, please pin your version of react-select at 2.2.0. Nonce support will be re-added in 3.0.0 along with an upgrade to emotion 10; which includes nonce support without having to provide a custom emotion instance. + +- [#3315](https://github.com/JedWatson/react-select/pull/3315) add RAF call to Collapse component getRef() such that getBoundingClientRect() is invoked consistently. +- [#3275](https://github.com/JedWatson/react-select/pull/3275/files) wrap String invocation around inputValue to avoid calling toLowerCase on invalid elements. thanks [tavareshenrique](https://github.com/tavareshenrique) +- [#3357](https://github.com/JedWatson/react-select/pull/3357), fix loadOptions call in Async select to always pass in a string for the inputValue. +- [#3346](https://github.com/JedWatson/react-select/pull/3346) Revert work done in CSP nonce PR [#3260](https://github.com/JedWatson/react-select/pull/3260) to unblock react-select usage in an SSR setting. Users who need nonce support still, please pin your version of react-select at 2.2.0. Nonce support will be re-added in 3.0.0 along with an upgrade to emotion 10; which includes nonce support without having to provide a custom emotion instance. ### Features -* [#3115](https://github.com/JedWatson/react-select/pull/3115) menu-is-open modifier added to control class when the menu is open. [@s20lee](https://github.com/s20lee) + +- [#3115](https://github.com/JedWatson/react-select/pull/3115) menu-is-open modifier added to control class when the menu is open. [@s20lee](https://github.com/s20lee) ## v2.2.0 / 2018-12-28 ### Bug Fixes -* [#3296](https://github.com/JedWatson/react-select/pull/3296) Fix for tab interactions when in composition mode with an IME. Thanks [yshr446](https://github.com/yshr446) for the PR. -* [#3302](https://github.com/JedWatson/react-select/pull/3302) Fix to breaking android and mobile safari touch bug [#2755](https://github.com/JedWatson/react-select/issues/2755), by adding more conscientious checks to the onTouchStart and onTouchMove listeners. Thanks [xakep139](https://github.com/xakep139) for the PR. -* [#3303](https://github.com/JedWatson/react-select/pull/3303) Input and GroupHeading components now get passed the selectProps prop, thanks [maxmarchuk](https://github.com/maxmarchuk) for the PR. -* [#3260](https://github.com/JedWatson/react-select/pull/3260) As a result of the CSP nonce support feature, the emotion instance is now cached and passed down to all internal components, meaning that users looking to heavily customise their Select components can do so without externally importing emotion, and nonce instances are respected per select instance. Please see [this segment](https://react-select.com/styles#cx-and-custom-components) in the docs for a more detailed explanation. -* [#3299](https://github.com/JedWatson/react-select/pull/3299) fix to assistive text on menu open. + +- [#3296](https://github.com/JedWatson/react-select/pull/3296) Fix for tab interactions when in composition mode with an IME. Thanks [yshr446](https://github.com/yshr446) for the PR. +- [#3302](https://github.com/JedWatson/react-select/pull/3302) Fix to breaking android and mobile safari touch bug [#2755](https://github.com/JedWatson/react-select/issues/2755), by adding more conscientious checks to the onTouchStart and onTouchMove listeners. Thanks [xakep139](https://github.com/xakep139) for the PR. +- [#3303](https://github.com/JedWatson/react-select/pull/3303) Input and GroupHeading components now get passed the selectProps prop, thanks [maxmarchuk](https://github.com/maxmarchuk) for the PR. +- [#3260](https://github.com/JedWatson/react-select/pull/3260) As a result of the CSP nonce support feature, the emotion instance is now cached and passed down to all internal components, meaning that users looking to heavily customise their Select components can do so without externally importing emotion, and nonce instances are respected per select instance. Please see [this segment](https://react-select.com/styles#cx-and-custom-components) in the docs for a more detailed explanation. +- [#3299](https://github.com/JedWatson/react-select/pull/3299) fix to assistive text on menu open. ### Feature -* [#3260](https://github.com/JedWatson/react-select/pull/3260) Add CSP nonce support to Select, thanks [Avaq](https://github.com/Avaq) and [Andarist](https://github.com/Andarist) for the heavy lifting. + +- [#3260](https://github.com/JedWatson/react-select/pull/3260) Add CSP nonce support to Select, thanks [Avaq](https://github.com/Avaq) and [Andarist](https://github.com/Andarist) for the heavy lifting. ## v2.1.2 / 2018-11-22 ### Bug fixes -* [#3161] Initialize state with `inputValue` when `defaultOptions` is true in AsyncSelect, resolves [#3160](https://github.com/JedWatson/react-select/issues/3160), thanks [@cutterbl](https://github.com/cutterbl) -* [#3096] Placeholder component now also receives the isFocused state value as a prop. Thanks [@Nelrohd](https://github.com/Nelrohd) -* [#3060] Fix bug where trying to set the cursor somewhere in an input value would close the menu. Thanks [@stijndeschuymer](https://github.com/stijndeschuymer) -* [#3163] Fixed bug where isDisabled wasn't being reflected onto the DummyInput, which meant that disabled non searchable selects were still focusable. Thanks [@gm0t](https://github.com/gm0t) -* [#3216] Fixes bug where clearing with backspace in a single select would result in an empty array, as opposed to the expected empty object. Thanks [@IanVS](https://github.com/IanVS) -* [#3013] Fixes bug where the menu would close on trying to scroll using the scroll bar in IE11. Thanks [@rakid](https://github.com/rakid) +- [#3161] Initialize state with `inputValue` when `defaultOptions` is true in AsyncSelect, resolves [#3160](https://github.com/JedWatson/react-select/issues/3160), thanks [@cutterbl](https://github.com/cutterbl) +- [#3096] Placeholder component now also receives the isFocused state value as a prop. Thanks [@Nelrohd](https://github.com/Nelrohd) +- [#3060] Fix bug where trying to set the cursor somewhere in an input value would close the menu. Thanks [@stijndeschuymer](https://github.com/stijndeschuymer) +- [#3163] Fixed bug where isDisabled wasn't being reflected onto the DummyInput, which meant that disabled non searchable selects were still focusable. Thanks [@gm0t](https://github.com/gm0t) +- [#3216] Fixes bug where clearing with backspace in a single select would result in an empty array, as opposed to the expected empty object. Thanks [@IanVS](https://github.com/IanVS) +- [#3013] Fixes bug where the menu would close on trying to scroll using the scroll bar in IE11. Thanks [@rakid](https://github.com/rakid) ### Misc -* A big shoutout to everyone who helped contribute to the docs. In no particular order [@acrawford13](https://github.com/JedWatson/react-select/commits?author=acrawford13), [@kirillku](https://github.com/kirillku), [@ajaymathur](https://github.com/ajaymathur), [@mgalgs](https://github.com/mgalgs), [@cutterbl](https://github.com/cutterbl), [@JonathanWbn](https://github.com/JonathanWbn), [@mwood23](https://github.com/mwood23), [@stevemao](https://github.com/stevemao), [@jossmac](https://github.com/jossmac), and anyone else I've missed. -* Thanks to [@IanVS](https://github.com/IanVS) for cleaning up our cypress tests. +- A big shoutout to everyone who helped contribute to the docs. In no particular order [@acrawford13](https://github.com/JedWatson/react-select/commits?author=acrawford13), [@kirillku](https://github.com/kirillku), [@ajaymathur](https://github.com/ajaymathur), [@mgalgs](https://github.com/mgalgs), [@cutterbl](https://github.com/cutterbl), [@JonathanWbn](https://github.com/JonathanWbn), [@mwood23](https://github.com/mwood23), [@stevemao](https://github.com/stevemao), [@jossmac](https://github.com/jossmac), and anyone else I've missed. +- Thanks to [@IanVS](https://github.com/IanVS) for cleaning up our cypress tests. ## v2.1.1 / 2018-10-24 ### Bug fixes -* [#3132] Strip theme props from default Input and GroupHeading components, as they were polluting the DOM. -* [#3131] Add support for the 'Delete' key in the internal onKeyDown method. Same functionality as 'Backspace'. -* [#3100] Update flow-types and normalised default prop declarations in indicators. Thanks [iseredov](https://github.com/iseredov) +- [#3132] Strip theme props from default Input and GroupHeading components, as they were polluting the DOM. +- [#3131] Add support for the 'Delete' key in the internal onKeyDown method. Same functionality as 'Backspace'. +- [#3100] Update flow-types and normalised default prop declarations in indicators. Thanks [iseredov](https://github.com/iseredov) ### Updates -* [#3083] Added sideEffects property to package.json to support tree-shaking in webpack 4.x. Thanks [SimenB](https://github.com/SimenB). -* [#3078] Update jest dependency to 23.6.0. Thanks [papandreou](https://github.com/papandreou) -* [#3065] Update babel-plugin-emotion to 9.2.10. Thanks [mtzhang](https://github.com/mtzhang) -* [#3108] Update docs to include instructions for replicating the simple-value use case within react-select v2. Thanks [elboletaire](https://github.com/elboletaire) +- [#3083] Added sideEffects property to package.json to support tree-shaking in webpack 4.x. Thanks [SimenB](https://github.com/SimenB). +- [#3078] Update jest dependency to 23.6.0. Thanks [papandreou](https://github.com/papandreou) +- [#3065] Update babel-plugin-emotion to 9.2.10. Thanks [mtzhang](https://github.com/mtzhang) +- [#3108] Update docs to include instructions for replicating the simple-value use case within react-select v2. Thanks [elboletaire](https://github.com/elboletaire) ## v2.1.0 / 2018-10-03 -* [#2839] Added support for theming via theme prop. Thanks [akx](https://github.com/akx) -* [#2874] Fixed flow-types of MultiValue components. Thanks [mike1808](https://github.com/mike1808) -* [#2903] Fix missing form input when there isn't a selected value. Thanks [alvinsj](https://github.com/alvinsj) -* [#2934] Reduced theme colors to a sane value set to make the exported theme more easy to consume and configure. Thanks [jossmac](https://github.com/jossmac) -* [#2876] Added overflow hidden to valueContainer to stop overflowing text in the control. Thanks [mike1808](https://github.com/mike1808) -* [#2975] Separated menu placement logic from menu primitive. Thanks [jossmac](https://github.com/jossmac). +- [#2839] Added support for theming via theme prop. Thanks [akx](https://github.com/akx) +- [#2874] Fixed flow-types of MultiValue components. Thanks [mike1808](https://github.com/mike1808) +- [#2903] Fix missing form input when there isn't a selected value. Thanks [alvinsj](https://github.com/alvinsj) +- [#2934] Reduced theme colors to a sane value set to make the exported theme more easy to consume and configure. Thanks [jossmac](https://github.com/jossmac) +- [#2876] Added overflow hidden to valueContainer to stop overflowing text in the control. Thanks [mike1808](https://github.com/mike1808) +- [#2975] Separated menu placement logic from menu primitive. Thanks [jossmac](https://github.com/jossmac). ## v2.0.0 / 2018-07-23 -* async select now accepts a filterOptions function as a prop [#2822](https://github.com/JedWatson/react-select/pull/2822) -* [BREAKING] react-select now exports react-select.esm.js from dist instead of react-select.es.js [#2641](https://github.com/JedWatson/react-select/pull/2641) -* [BREAKING] innerRef assignments in custom components must now be made from the root of the prop object, as opposed to reaching into innerProps. This is part of the work to normalize the behaviour circa custom components. [#2824](https://github.com/JedWatson/react-select/pull/2824) -* className and classNamePrefix deprecation warning and backward compatibility removed. className now only affects the select container, classNamePrefix prefixes all internal components. [#2820](https://github.com/JedWatson/react-select/pull/2820) -* Added `closeMenuOnScroll` prop, which can either be a `boolean` or a `function`, if set to `true` the select menu will close on scroll of the document/body. If a function is supplied, it must take the following shape `(event: ScrollEvent) => boolean`, the boolean value will be used to resolve whether the menu should be closed or stay open. [#2809](https://github.com/JedWatson/react-select/pull/2809), thanks [Vynlar](https://github.com/Vynlar) for this. -* Added fix to support IME inputs. [#2767](https://github.com/JedWatson/react-select/pull/2767), thanks [shamabe](https://github.com/shamabe) -* Removed primitives, and normalise multi-value components to be in line with existing component customisation patterns. [#2821](https://github.com/JedWatson/react-select/pull/2821) -* Normalised isOptionDisabled to be inline with its sibling prop isOptionSelected. [#2821](https://github.com/JedWatson/react-select/pull/2695) Thanks [SimeonC](https://github.com/SimeonC) -* [#2814](https://github.com/JedWatson/react-select/pull/2814) Added memoization to custom components within Select.js as well as in the exported makeAnimated factory method. Thanks to [Alex Reardon's](https://github.com/alexreardon) [memoize-one](https://github.com/alexreardon/memoize-one) -* [#2652](https://github.com/JedWatson/react-select/pull/2652), Async Select now re-evaluates defaultOptions on componentWillReceiveProps. Thanks [jesstelford](https://github.com/jesstelford) +- async select now accepts a filterOptions function as a prop [#2822](https://github.com/JedWatson/react-select/pull/2822) +- [BREAKING] react-select now exports react-select.esm.js from dist instead of react-select.es.js [#2641](https://github.com/JedWatson/react-select/pull/2641) +- [BREAKING] innerRef assignments in custom components must now be made from the root of the prop object, as opposed to reaching into innerProps. This is part of the work to normalize the behaviour circa custom components. [#2824](https://github.com/JedWatson/react-select/pull/2824) +- className and classNamePrefix deprecation warning and backward compatibility removed. className now only affects the select container, classNamePrefix prefixes all internal components. [#2820](https://github.com/JedWatson/react-select/pull/2820) +- Added `closeMenuOnScroll` prop, which can either be a `boolean` or a `function`, if set to `true` the select menu will close on scroll of the document/body. If a function is supplied, it must take the following shape `(event: ScrollEvent) => boolean`, the boolean value will be used to resolve whether the menu should be closed or stay open. [#2809](https://github.com/JedWatson/react-select/pull/2809), thanks [Vynlar](https://github.com/Vynlar) for this. +- Added fix to support IME inputs. [#2767](https://github.com/JedWatson/react-select/pull/2767), thanks [shamabe](https://github.com/shamabe) +- Removed primitives, and normalise multi-value components to be in line with existing component customisation patterns. [#2821](https://github.com/JedWatson/react-select/pull/2821) +- Normalised isOptionDisabled to be inline with its sibling prop isOptionSelected. [#2821](https://github.com/JedWatson/react-select/pull/2695) Thanks [SimeonC](https://github.com/SimeonC) +- [#2814](https://github.com/JedWatson/react-select/pull/2814) Added memoization to custom components within Select.js as well as in the exported makeAnimated factory method. Thanks to [Alex Reardon's](https://github.com/alexreardon) [memoize-one](https://github.com/alexreardon/memoize-one) +- [#2652](https://github.com/JedWatson/react-select/pull/2652), Async Select now re-evaluates defaultOptions on componentWillReceiveProps. Thanks [jesstelford](https://github.com/jesstelford) ## v2.0.0-beta.7 / 2018-07-03 -* Removed old aria-attributes in Option, MenuList and other components in favor of an aria-live-region implementation. `screenReaderStatus` prop is still at the moment untouched, and `aria-labelledby` and `aria-label` props are still available and retain their functionality. See [#2581](https://github.com/JedWatson/react-select/pull/2581). -* Internal ref `input` is now `inputRef` for consistency. -* Internal ref `menuRef` is now `menuListRef` for consistency. -* Fixed bug with MultiValueRemove interaction not working in mobile [#2762](https://github.com/JedWatson/react-select/pull/2762), thanks [chuckbergeron](https://github.com/chuckbergeron). -* Added makeAnimated function export, that takes passed in components and wraps them in higher order components that expose animated functionality. [#2724](https://github.com/JedWatson/react-select/pull/2724) -* Added functionality to not render the menu if `noOptionsMessage` or `loadingMessage` are set to null. [#2754](https://github.com/JedWatson/react-select/pull/2754) -* Fixed bug with mobile menu being blocked when `menuShouldBlockScroll` is true. -[#2756](https://github.com/JedWatson/react-select/pull/2756) -* Enabled hideSelectedOptions functionality for single-select as well. Changed logic so that if isMulti is true and hideSelectedOptions is not defined, we will hide selected options by default. Explicitly setting hideSelectedOptions will override this behaviour. https://github.com/JedWatson/react-select/pull/2753 -* Updates to flow types, thanks [mike1808](https://github.com/mike1808), [himerus](https://github.com/himerus), -[teamable-software](https://github.com/teamable-software) and -* Bumped internal flow-bin dependency to 0.72.0, [#2646](https://github.com/JedWatson/react-select/pull/2646) thanks [lunij](https://github.com/lunij) -* Fixed [#2701](https://github.com/JedWatson/react-select/issues/2701), use of un-polyfilled array.includes() in Select.js, this has now been subbed out for a IE compatible implementation. -* [#2733](https://github.com/JedWatson/react-select/issues/2733), fixed classname bug to do with prefixing classes with modifiers. -* [#2723](https://github.com/JedWatson/react-select/issues/2732), fixed emotion compilation bug blocking loadingDot rendering. -* [#2749](https://github.com/JedWatson/react-select/pull/2749) fixed typo in docs. thanks [JuhQ](https://github.com/juhq) -* [#2717](https://github.com/JedWatson/react-select/pull/2717) added selected value to onChange to accommodate multi-select, thanks [SimeonC](https://github.com/simeonc) +- Removed old aria-attributes in Option, MenuList and other components in favor of an aria-live-region implementation. `screenReaderStatus` prop is still at the moment untouched, and `aria-labelledby` and `aria-label` props are still available and retain their functionality. See [#2581](https://github.com/JedWatson/react-select/pull/2581). +- Internal ref `input` is now `inputRef` for consistency. +- Internal ref `menuRef` is now `menuListRef` for consistency. +- Fixed bug with MultiValueRemove interaction not working in mobile [#2762](https://github.com/JedWatson/react-select/pull/2762), thanks [chuckbergeron](https://github.com/chuckbergeron). +- Added makeAnimated function export, that takes passed in components and wraps them in higher order components that expose animated functionality. [#2724](https://github.com/JedWatson/react-select/pull/2724) +- Added functionality to not render the menu if `noOptionsMessage` or `loadingMessage` are set to null. [#2754](https://github.com/JedWatson/react-select/pull/2754) +- Fixed bug with mobile menu being blocked when `menuShouldBlockScroll` is true. + [#2756](https://github.com/JedWatson/react-select/pull/2756) +- Enabled hideSelectedOptions functionality for single-select as well. Changed logic so that if isMulti is true and hideSelectedOptions is not defined, we will hide selected options by default. Explicitly setting hideSelectedOptions will override this behaviour. https://github.com/JedWatson/react-select/pull/2753 +- Updates to flow types, thanks [mike1808](https://github.com/mike1808), [himerus](https://github.com/himerus), + [teamable-software](https://github.com/teamable-software) and +- Bumped internal flow-bin dependency to 0.72.0, [#2646](https://github.com/JedWatson/react-select/pull/2646) thanks [lunij](https://github.com/lunij) +- Fixed [#2701](https://github.com/JedWatson/react-select/issues/2701), use of un-polyfilled array.includes() in Select.js, this has now been subbed out for a IE compatible implementation. +- [#2733](https://github.com/JedWatson/react-select/issues/2733), fixed classname bug to do with prefixing classes with modifiers. +- [#2723](https://github.com/JedWatson/react-select/issues/2732), fixed emotion compilation bug blocking loadingDot rendering. +- [#2749](https://github.com/JedWatson/react-select/pull/2749) fixed typo in docs. thanks [JuhQ](https://github.com/juhq) +- [#2717](https://github.com/JedWatson/react-select/pull/2717) added selected value to onChange to accommodate multi-select, thanks [SimeonC](https://github.com/simeonc) ## v2.0.0-beta.6 / 2018-05-23 -* Fixed bug with `css` attribute being wrongly applied to a DOM element in SingleValue. Thanks [guigs](http://github.com/guigs) -* Added `removedValue` to the `actionMeta` of the `remove-value` action that's passed into the `onChange` prop. -* Reverted previous change of `innerRef` in `innerProps` of custom Components to `ref`. The property is now once again named `innerRef`. This is mostly to resolve issues with styled-components not passing `ref` down to wrapped dom elements, however this is also a safer pattern to apply as it requires users providing their own custom components to explicitly associate the passed down ref with the requisite dom element. -* selectValue now filters items based on the getOptionValue method. Thanks (inv8der)[http://github.com/inv8der] -* Added `createOptionPosition` to creatable select to allow users to specify where the createOption element appears in the menu. -* Added touch handling logic to detect user intent to scroll the page when interacting with the select control. +- Fixed bug with `css` attribute being wrongly applied to a DOM element in SingleValue. Thanks [guigs](http://github.com/guigs) +- Added `removedValue` to the `actionMeta` of the `remove-value` action that's passed into the `onChange` prop. +- Reverted previous change of `innerRef` in `innerProps` of custom Components to `ref`. The property is now once again named `innerRef`. This is mostly to resolve issues with styled-components not passing `ref` down to wrapped dom elements, however this is also a safer pattern to apply as it requires users providing their own custom components to explicitly associate the passed down ref with the requisite dom element. +- selectValue now filters items based on the getOptionValue method. Thanks (inv8der)[http://github.com/inv8der] +- Added `createOptionPosition` to creatable select to allow users to specify where the createOption element appears in the menu. +- Added touch handling logic to detect user intent to scroll the page when interacting with the select control. ## v2.0.0-beta.5 / 2018-05-18 -* Added `controlShouldRenderValue` prop, defaults to true. Setting it to false disables rendering values in the control. Thanks[Joss Mackison](http://github.com/jossmac) +- Added `controlShouldRenderValue` prop, defaults to true. Setting it to false disables rendering values in the control. Thanks[Joss Mackison](http://github.com/jossmac) ## v2.0.0-beta.4 / 2018-05-15 -* Fixed bug where transition props were being spread onto the DummyInput causing react warnings in the console. Thanks [Mike Gardner](https://github.com/MikeLimeRocket) + +- Fixed bug where transition props were being spread onto the DummyInput causing react warnings in the console. Thanks [Mike Gardner](https://github.com/MikeLimeRocket) ## v2.0.0-beta.3 / 2018-05-14 @@ -189,149 +217,149 @@ applies to internal components. Until 2.0.0 final is released, we have added backwards compatibility and a deprecation warning to cover this change. -* Added `classNamePrefix` prop, which now controls the class names applied to internal components -* Refactored cx internal implementation to reduce specificity of css-in-jss base styles. -* `maxValueHeight` prop removed -* Added `--is-disabled` className modifier to Option component, thanks [eemeli](https://github.com/eemeli) -* Fixed various IE11 issues, see [#2583](https://github.com/JedWatson/react-select/issues/2583) -* Added multi-value keyboard navigation using left and right arrows. -* Simplified flow distribution, thanks [falconmick](https://github.com/falconmick) -* Added fix to ensure focus is on the Input when the menu opens +- Added `classNamePrefix` prop, which now controls the class names applied to internal components +- Refactored cx internal implementation to reduce specificity of css-in-jss base styles. +- `maxValueHeight` prop removed +- Added `--is-disabled` className modifier to Option component, thanks [eemeli](https://github.com/eemeli) +- Fixed various IE11 issues, see [#2583](https://github.com/JedWatson/react-select/issues/2583) +- Added multi-value keyboard navigation using left and right arrows. +- Simplified flow distribution, thanks [falconmick](https://github.com/falconmick) +- Added fix to ensure focus is on the Input when the menu opens ## v2.0.0-beta.2 / 2018-04-25 -* Switched from glam to [emotion](https://emotion.sh) for css-in-js -* Input colour can now be changed -* Use of React 16 Fragment removed, 2.0.0 should work with React 15 -* SSR support improved -* Indicator icons are now exported +- Switched from glam to [emotion](https://emotion.sh) for css-in-js +- Input colour can now be changed +- Use of React 16 Fragment removed, 2.0.0 should work with React 15 +- SSR support improved +- Indicator icons are now exported ## v2.0.0-beta.1 / 2018-04-20 -* Added `tabIndex` prop -* Added `classNames` prop -* Added upgrade guide from v1 --> v2 -* Fixed bug with overflowing long values in the control -* Fixed ie11 bug to do with absolutely positioned children in flex parent. -* Documentation ie11, styling and copy improvements +- Added `tabIndex` prop +- Added `classNames` prop +- Added upgrade guide from v1 --> v2 +- Fixed bug with overflowing long values in the control +- Fixed ie11 bug to do with absolutely positioned children in flex parent. +- Documentation ie11, styling and copy improvements ## v2.0.0-alpha.11 / 2018-04-12 Minor fix since last alpha: -* Fixed a flow type issue that was causing issues for consumers +- Fixed a flow type issue that was causing issues for consumers ## v2.0.0-alpha.10 / 2018-04-10 Minor fix since last alpha: -* Fixed an issue with `dist/react-select.es.js` where `babelHelpers` weren't defined +- Fixed an issue with `dist/react-select.es.js` where `babelHelpers` weren't defined ## v2.0.0-alpha.9 / 2018-04-10 Ongoing rewrite. Major changes since last alpha: -* Added `openMenuOnClick` and `openMenuOnFocus` props -* Significant test coverage and documentation improvements -* Added `onMenuScrollToTop` and `onMenuScrollToBottom` event props -* `scrollMenuIntoView` prop renamed `menuShouldScrollIntoView` -* `onKeyDown` now based on event.key not event.keyCode -* Component ids no longer have double separators -* Fixed a Firefox bug with `position: absolute` and `display: flex` -* Added support for fixed position menu and scroll blocking -* Fixed issue with transition group props being passed to child components -* Fixed issue with portalled menu display when `menuPlacement="top"` +- Added `openMenuOnClick` and `openMenuOnFocus` props +- Significant test coverage and documentation improvements +- Added `onMenuScrollToTop` and `onMenuScrollToBottom` event props +- `scrollMenuIntoView` prop renamed `menuShouldScrollIntoView` +- `onKeyDown` now based on event.key not event.keyCode +- Component ids no longer have double separators +- Fixed a Firefox bug with `position: absolute` and `display: flex` +- Added support for fixed position menu and scroll blocking +- Fixed issue with transition group props being passed to child components +- Fixed issue with portalled menu display when `menuPlacement="top"` ## v2.0.0-alpha.8 / 2018-02-20 Ongoing rewrite. Major changes since last alpha: -* Made `focus` and `blur` methods work consistently when composing HOCs -* Added `menuPortalTarget` prop which portals the menu, with a `MenuPortal` component and `menuPortal` style key -* Allow the `MultiValueRemove` component children to be changed -* Lots of new tests, updates to documentation and examples +- Made `focus` and `blur` methods work consistently when composing HOCs +- Added `menuPortalTarget` prop which portals the menu, with a `MenuPortal` component and `menuPortal` style key +- Allow the `MultiValueRemove` component children to be changed +- Lots of new tests, updates to documentation and examples ## v2.0.0-alpha.7 / 2018-02-14 Ongoing rewrite. Major changes since last alpha: -* Significantly improved touch and mobile support -* New positioning behaviour for the Menu -* Added `scrollMenuIntoView` prop, which does exactly what you'd expect -* Added action meta to the `onInputChange` event handler arguments -* `Creatable` Component Added -* `AsyncCreatable` Component Added -* Fixed an issue with the layout that would trigger a Firefox repaint bug -* Improved behaviour when the `isDisabled` prop value is changed -* The `IndicatorSeparator` isn't rendered when there is no `DropdownIndicator` -* Converted `StateManager` to a higher order component -* New website, docs, and more tests! (still WIP) -* Examples can now be launched in CodeSandbox, thanks to [Ben Conolly](https://github.com/noviny) +- Significantly improved touch and mobile support +- New positioning behaviour for the Menu +- Added `scrollMenuIntoView` prop, which does exactly what you'd expect +- Added action meta to the `onInputChange` event handler arguments +- `Creatable` Component Added +- `AsyncCreatable` Component Added +- Fixed an issue with the layout that would trigger a Firefox repaint bug +- Improved behaviour when the `isDisabled` prop value is changed +- The `IndicatorSeparator` isn't rendered when there is no `DropdownIndicator` +- Converted `StateManager` to a higher order component +- New website, docs, and more tests! (still WIP) +- Examples can now be launched in CodeSandbox, thanks to [Ben Conolly](https://github.com/noviny) ## v2.0.0-alpha.6 / 2018-02-14 Ongoing rewrite. Major changes since last alpha: -* `menuIsOpen`, `inputValue` and `value` are now controllable props that default to internal state -* Fixed missing loading indicator -* Added "open in code sandbox" to all examples -* Switched menu rendering from li to div tags for better screen reader usability -* Removed unused primitives and simplified indicator components -* Improved accessibility of groups and options, cleaned up Group implementation -* Fixed some input alignment issues -* Added right-to-left support with `isRtl` prop -* Support blocking page scroll at menu boundaries with `captureMenuScroll` prop -* Added automatic menu flipping at window boundaries with `menuPlacement` and `menuShouldFlip` props -* Added `isSearchable` prop to support simple (not searchable) select inputs -* Added `pageSize` prop +- `menuIsOpen`, `inputValue` and `value` are now controllable props that default to internal state +- Fixed missing loading indicator +- Added "open in code sandbox" to all examples +- Switched menu rendering from li to div tags for better screen reader usability +- Removed unused primitives and simplified indicator components +- Improved accessibility of groups and options, cleaned up Group implementation +- Fixed some input alignment issues +- Added right-to-left support with `isRtl` prop +- Support blocking page scroll at menu boundaries with `captureMenuScroll` prop +- Added automatic menu flipping at window boundaries with `menuPlacement` and `menuShouldFlip` props +- Added `isSearchable` prop to support simple (not searchable) select inputs +- Added `pageSize` prop ## v2.0.0-alpha.5 / 2018-02-07 Ongoing rewrite. Major changes since last alpha: -* Fixed an issue where animated values would show ellipsis while leaving -* Long single values are now also correctly truncated +- Fixed an issue where animated values would show ellipsis while leaving +- Long single values are now also correctly truncated ## v2.0.0-alpha.4 / 2018-02-06 Ongoing rewrite. Major changes since last alpha: -* Added support for Promises in the Async component -* Added `setValue` method on the Select class -* More consistent use of `innerProps` for internal components -* Internal components are now provided a consistent set of props and API -* Improved handling of keyboard and mouse interaction for options in the menu -* Default filtering behaviour now has parity with v1 -* New `createFilter` method lets you customise the filter options -* Some unnecessary components have been removed for better performance -* Long values are now truncated +- Added support for Promises in the Async component +- Added `setValue` method on the Select class +- More consistent use of `innerProps` for internal components +- Internal components are now provided a consistent set of props and API +- Improved handling of keyboard and mouse interaction for options in the menu +- Default filtering behaviour now has parity with v1 +- New `createFilter` method lets you customise the filter options +- Some unnecessary components have been removed for better performance +- Long values are now truncated ## v2.0.0-alpha.3 / 2018-02-02 Ongoing rewrite. Major changes since last alpha: -* Added `getOptionValue`, `getOptionLabel` and `formatOptionLabel` props -* Added `isOptionSelected` and `isOptionDisabled` props -* Added `name` and `delimiter` props to support hidden html inputs for forms -* Added `loadingMessage`, `noOptionsMessage` and `screenReaderStatus` props so messages can be customised -* Customisable components are now passed `innerProps` for simpler implementation -* Cleaned up internal Components and made sure they can all be styled -* Implemented customisable filtering function with support for case and diacritics -* Fixed various css bugs and vendor prefixing issues -* Accessibility improvements +- Added `getOptionValue`, `getOptionLabel` and `formatOptionLabel` props +- Added `isOptionSelected` and `isOptionDisabled` props +- Added `name` and `delimiter` props to support hidden html inputs for forms +- Added `loadingMessage`, `noOptionsMessage` and `screenReaderStatus` props so messages can be customised +- Customisable components are now passed `innerProps` for simpler implementation +- Cleaned up internal Components and made sure they can all be styled +- Implemented customisable filtering function with support for case and diacritics +- Fixed various css bugs and vendor prefixing issues +- Accessibility improvements ## v2.0.0-alpha.2 / 2018-01-25 Ongoing rewrite. Major changes since last alpha: -* `Async` component added -* `styles` prop added to Select component -* `isLoading` prop to Select component and new indicator added -* Support added for disabled options -* Internal components cleaned up -* Cypress tests added -* CSS class names added to default components -* Accessibility improvements +- `Async` component added +- `styles` prop added to Select component +- `isLoading` prop to Select component and new indicator added +- Support added for disabled options +- Internal components cleaned up +- Cypress tests added +- CSS class names added to default components +- Accessibility improvements ## v2.0.0-alpha.1 / 2018-01-12 @@ -339,423 +367,423 @@ Complete rewrite, docs and upgrade notes on changes from v1 to come later. ## v1.2.1 / 2018-01-13 -* Fixed blocking the Del key when deleteRemoves is false, thanks [Nachtigall, Jens (init)](https://github.com/jnachtigall) - [see PR](https://github.com/JedWatson/react-select/pull/2291) -* Fixed inline-block rendering for arrowRenderer without autosize, thanks [Harry Kao](https://github.com/harrykao) - [see PR](https://github.com/JedWatson/react-select/pull/2276) -* Fixed dropdown menu positioning issues in IE 11, thanks [jharris4](https://github.com/jharris4) - [see PR](https://github.com/JedWatson/react-select/pull/2273) -* Added missing rule to the `scss` stylesheet, thanks [Jordan Whitfield](https://github.com/mantissa7) - [see PR](https://github.com/JedWatson/react-select/pull/2280) ->>>>>>> master +- Fixed blocking the Del key when deleteRemoves is false, thanks [Nachtigall, Jens (init)](https://github.com/jnachtigall) - [see PR](https://github.com/JedWatson/react-select/pull/2291) +- Fixed inline-block rendering for arrowRenderer without autosize, thanks [Harry Kao](https://github.com/harrykao) - [see PR](https://github.com/JedWatson/react-select/pull/2276) +- Fixed dropdown menu positioning issues in IE 11, thanks [jharris4](https://github.com/jharris4) - [see PR](https://github.com/JedWatson/react-select/pull/2273) +- Added missing rule to the `scss` stylesheet, thanks [Jordan Whitfield](https://github.com/mantissa7) - [see PR](https://github.com/JedWatson/react-select/pull/2280) + > > > > > > > master ## v1.2.0 / 2018-01-08 -* Source cleanup, thanks to [Yuri S](https://github.com/yuri-sakharov) and +- Source cleanup, thanks to [Yuri S](https://github.com/yuri-sakharov) and [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2262) -* Switched from babel-preset-es2015 to babel-preset-env, thanks +- Switched from babel-preset-es2015 to babel-preset-env, thanks [Rambabu Yadlapalli](https://github.com/RamYadlapalli) - [see PR](https://github.com/JedWatson/react-select/pull/2254) -* Fixed focused option. Issue #2237, thanks +- Fixed focused option. Issue #2237, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2245) -* Fix onSelectResetsInput bug from keyboard navigation, thanks +- Fix onSelectResetsInput bug from keyboard navigation, thanks [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2259) -* Fixed all warnings on running tests, thanks +- Fixed all warnings on running tests, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2231) -* Added missing tests for Option.js and refactored Option-test.js., thanks +- Added missing tests for Option.js and refactored Option-test.js., thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2249) -* Added missing tests for Async.js, thanks +- Added missing tests for Async.js, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2250) -* Fixed console error in GitHub users example, thanks +- Fixed console error in GitHub users example, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2244) -* Fixed readme example. Issue #2235, thanks +- Fixed readme example. Issue #2235, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2246) -* Regression fix for single select with onSelectResetsInput=false, thanks +- Regression fix for single select with onSelectResetsInput=false, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2226) -* Pass placeholder prop to ValueComponent, thanks +- Pass placeholder prop to ValueComponent, thanks [Aravind Srivatsan](https://github.com/aravindsrivats) - [see PR](https://github.com/JedWatson/react-select/pull/2225) -* Refactored handleKeyDown switch, thanks +- Refactored handleKeyDown switch, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2228) -* onSelectResetsInput regression fixed, thanks +- onSelectResetsInput regression fixed, thanks [Jed Watson](https://github.com/dehamilton) - [see PR](https://github.com/JedWatson/react-select/pull/2215) -* Don't open drop down menu when clear values, thanks +- Don't open drop down menu when clear values, thanks [Jed Watson](https://github.com/Chopinsky) - [see PR](https://github.com/JedWatson/react-select/pull/2198) -* Clear input value on receiving props with another value., thanks +- Clear input value on receiving props with another value., thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2183) -* Fix/is option unique crash, thanks [Jacob Zuo](https://github.com/Chopinsky) - +- Fix/is option unique crash, thanks [Jacob Zuo](https://github.com/Chopinsky) - [see PR](https://github.com/JedWatson/react-select/pull/2185) -* Use react-input-autosize v2.1.2 for guard against undefined window, thanks +- Use react-input-autosize v2.1.2 for guard against undefined window, thanks [DStyleZ](https://github.com/sximba) - [see PR](https://github.com/JedWatson/react-select/pull/2187) -* Fix issue #2182, thanks [Kurt Hoyt](https://github.com/kurtinatlanta) - +- Fix issue #2182, thanks [Kurt Hoyt](https://github.com/kurtinatlanta) - [see PR](https://github.com/JedWatson/react-select/pull/2213) -* Documenting behavior of onBlurResetsInput in the readme., thanks +- Documenting behavior of onBlurResetsInput in the readme., thanks [hobbsl](https://github.com/levininja) - [see PR](https://github.com/JedWatson/react-select/pull/2212) -* Use onSelectResetsInput for single select, thanks +- Use onSelectResetsInput for single select, thanks [lachiet](https://github.com/lachiet) - [see PR](https://github.com/JedWatson/react-select/pull/2205) -* Fix state value in README example, thanks +- Fix state value in README example, thanks [Srishan Bhattarai](https://github.com/srishanbhattarai) - [see PR](https://github.com/JedWatson/react-select/pull/2192) -* document breaking change of removing getInputValue, thanks +- document breaking change of removing getInputValue, thanks [Turadg Aleahmad](https://github.com/turadg) - [see PR](https://github.com/JedWatson/react-select/pull/2195) -* Fixed search for invalid label and/or value, thanks +- Fixed search for invalid label and/or value, thanks [Yuri S](https://github.com/yuri-sakharov) - [see PR](https://github.com/JedWatson/react-select/pull/2179) ## v1.1.0 / 2017-11-28 -* added; more props are passed to the Option component: `focusOption`, +- added; more props are passed to the Option component: `focusOption`, `inputValue`, `selectValue`, `removeValue` -* added; the `inputValue` is passed as the third argument to the +- added; the `inputValue` is passed as the third argument to the `optionRenderer` -* fixed; issues opening the menu correctly for multiselect when +- fixed; issues opening the menu correctly for multiselect when `autosize={false}` -* fixed; removed `event.stopPropagation()` from Select's `clearValue` and +- fixed; removed `event.stopPropagation()` from Select's `clearValue` and `onClick` handlers, thanks [Thomas Burke](https://github.com/etburke) -* fixed; `handleMouseDownOnArrow` when `openOnClick={false}`, thanks +- fixed; `handleMouseDownOnArrow` when `openOnClick={false}`, thanks [elias ghali](https://github.com/elghali) -* fixed; conditional scrolling into view of focused option, thanks +- fixed; conditional scrolling into view of focused option, thanks [Michael Lewis](https://github.com/mtlewis) ## v1.0.1 / 2017-11-24 -* reintroduced source files for scss and less stylesheets into the npm package +- reintroduced source files for scss and less stylesheets into the npm package ## v1.0.0 / 2017-11-23 -* breaking; removed `getInputValue` function - +- breaking; removed `getInputValue` function - [see PR](https://github.com/JedWatson/react-select/pull/2108) -* reverted spacebar-selects-option behaviour for searchable selects, thanks +- reverted spacebar-selects-option behaviour for searchable selects, thanks [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2163) -* fixed behaviour where async doesn't handle onInputChange returning a value, +- fixed behaviour where async doesn't handle onInputChange returning a value, thanks [Anton](https://github.com/tehbi4) - [see PR](https://github.com/JedWatson/react-select/pull/2133) -* fixed Creatable bug where the first enter keypress is ignored when +- fixed Creatable bug where the first enter keypress is ignored when `promptTextCreator` returns only the label, thanks [George Karagkiaouris](https://github.com/karaggeorge) - [see PR](https://github.com/JedWatson/react-select/pull/2140) -* Utility functions are now exported from the es6 build, thanks +- Utility functions are now exported from the es6 build, thanks [Deiru](https://github.com/Deiru2k) - [see PR](https://github.com/JedWatson/react-select/pull/2154) -* Update aria-only class to have absolute positioning, thanks +- Update aria-only class to have absolute positioning, thanks [Jacob Hilker](https://github.com/JHilker) - [see PR](https://github.com/JedWatson/react-select/pull/1243) -* gives possibility to use ref property for Creatable, thanks +- gives possibility to use ref property for Creatable, thanks [blacktemplar](https://github.com/blacktemplar) - [see PR](https://github.com/JedWatson/react-select/pull/1646) -* Adds lint and test pre-commit hooks, thanks +- Adds lint and test pre-commit hooks, thanks [carymcpoland](https://github.com/mcpolandc) - [see PR](https://github.com/JedWatson/react-select/pull/2077) -* Disable some browser-specific behaviours that break the input, thanks +- Disable some browser-specific behaviours that break the input, thanks [Jed Watson](https://github.com/JedWatson) - [see PR](https://github.com/JedWatson/react-select/pull/2101) -* onOpen: run after dom has rendered, thanks +- onOpen: run after dom has rendered, thanks [Karl-Aksel Puulmann](https://github.com/macobo) - [see PR](https://github.com/JedWatson/react-select/pull/#1756) -* fix not clearing when given invalid values, from #1756, thanks +- fix not clearing when given invalid values, from #1756, thanks [Mário][https://github.com/ticklemynausea] - [see PR](https://github.com/JedWatson/react-select/pull/2100) -* Exports Option Component, thanks +- Exports Option Component, thanks [Erkelens, Jan Paul](https://github.com/jperkelens) - [see PR](https://github.com/JedWatson/react-select/pull/2097) -* Fix/numeric multi select, thanks +- Fix/numeric multi select, thanks [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2086) -* removeSelected prop (round 2), for optionally keeping selected values in +- removeSelected prop (round 2), for optionally keeping selected values in dropdown, thanks [Jed Watson](https://github.com/banderson) - [see PR](https://github.com/JedWatson/react-select/pull/1891) -* pass removeValue() and always pass valueArray, thanks +- pass removeValue() and always pass valueArray, thanks [kcliu](https://github.com/kcliu) - [see PR](https://github.com/JedWatson/react-select/pull/1850) -* Accessibility Enhancements - Aria tags, Space/Enter keys, thanks +- Accessibility Enhancements - Aria tags, Space/Enter keys, thanks [sushmabadam](https://github.com/sushmabadam) - [see PR](https://github.com/JedWatson/react-select/pull/1428) -* added rtl support, thanks [Dekel](https://github.com/dekelb) - +- added rtl support, thanks [Dekel](https://github.com/dekelb) - [see PR](https://github.com/JedWatson/react-select/pull/1613) -* Add inputValue to menuRenderer, thanks +- Add inputValue to menuRenderer, thanks [headcanon](https://github.com/chronick) - [see PR](https://github.com/JedWatson/react-select/pull/1732) -* fix typo in handleKeyDown method, thanks +- fix typo in handleKeyDown method, thanks [jasonchangxo](https://github.com/jasonchangxo) - [see PR](https://github.com/JedWatson/react-select/pull/2088) -* Fix/numeric multi select, thanks +- Fix/numeric multi select, thanks [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2086) -* expose children in AsyncCreatable.js, thanks +- expose children in AsyncCreatable.js, thanks [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2084) -* replace trim fn loop with regex, thanks +- replace trim fn loop with regex, thanks [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2085) -* Trim search text from beginning and the end. (fixes #1861), thanks +- Trim search text from beginning and the end. (fixes #1861), thanks [Serkan Ozer](https://github.com/serkanozer) - [see PR](https://github.com/JedWatson/react-select/pull/1862) -* Add variable for focused input background, thanks +- Add variable for focused input background, thanks [Aron Strandberg](https://github.com/aronstrandberg) - [see PR](https://github.com/JedWatson/react-select/pull/1998) -* Added id in the input select, thanks +- Added id in the input select, thanks [thecreazy](https://github.com/thecreazy) - [see PR](https://github.com/JedWatson/react-select/pull/2027) -* adding a nvmrc file and adding coverage to eslintignore, thanks +- adding a nvmrc file and adding coverage to eslintignore, thanks [Dave Birch](https://github.com/uxtx) - [see PR](https://github.com/JedWatson/react-select/pull/1137) -* Updated the comment for the deleteRemoves option., thanks +- Updated the comment for the deleteRemoves option., thanks [Abul Dider](https://github.com/dider7) - [see PR](https://github.com/JedWatson/react-select/pull/2078) -* implemented optional rendering of arrow, thanks +- implemented optional rendering of arrow, thanks [rolandjohann](https://github.com/rolandjohann) - [see PR](https://github.com/JedWatson/react-select/pull/1761) -* Skip rendering arrow wrapper when custom arrow renderer returns falsy value, +- Skip rendering arrow wrapper when custom arrow renderer returns falsy value, thanks [Mike Lewis](https://github.com/mtlewis) - [see PR](https://github.com/JedWatson/react-select/pull/2055) -* do not show clear button if value is an empty string, thanks +- do not show clear button if value is an empty string, thanks [Marie Godon](https://github.com/mariegodon) - [see PR](https://github.com/JedWatson/react-select/pull/2074) -* Set isLoading to false if cache hit, thanks +- Set isLoading to false if cache hit, thanks [timhwang21](https://github.com/timhwang21) - [see PR](https://github.com/JedWatson/react-select/pull/2042) -* Add aria-labels to Options, thanks +- Add aria-labels to Options, thanks [jasonchangxo](https://github.com/jasonchangxo) - [see PR](https://github.com/JedWatson/react-select/pull/2036) -* Adds source links to each example, thanks +- Adds source links to each example, thanks [Damon Bauer](https://github.com/damonbauer) - [see PR](https://github.com/JedWatson/react-select/pull/2051) -* Issue #2056: onInputChange should return modified value, thanks +- Issue #2056: onInputChange should return modified value, thanks [Caleb Scholze](https://github.com/cscholze) - [see PR](https://github.com/JedWatson/react-select/pull/2057) -* Remove option `addLabelText` from README and propTypes, thanks +- Remove option `addLabelText` from README and propTypes, thanks [Jannes Jeising](https://github.com/jjeising) - [see PR](https://github.com/JedWatson/react-select/pull/2040) -* GitHub has a capital H, thanks +- GitHub has a capital H, thanks [David Baumgold](https://github.com/singingwolfboy) - [see PR](https://github.com/JedWatson/react-select/pull/2053) -* refactor componentWillUnmount(), thanks +- refactor componentWillUnmount(), thanks [riophae](https://github.com/riophae) - [see PR](https://github.com/JedWatson/react-select/pull/2064) -* Slim down NPM package, thanks [Valentin Agachi](https://github.com/avaly) - +- Slim down NPM package, thanks [Valentin Agachi](https://github.com/avaly) - [see PR](https://github.com/JedWatson/react-select/pull/2062) -* Update contributing doc, thanks [Gregg Brewster](https://github.com/greggb) - +- Update contributing doc, thanks [Gregg Brewster](https://github.com/greggb) - [see PR](https://github.com/JedWatson/react-select/pull/2059) -* strip proptypes in production build (fixes #1882), thanks +- strip proptypes in production build (fixes #1882), thanks [Jochen Berger](https://github.com/jochenberger) - [see PR](https://github.com/JedWatson/react-select/pull/2003) -* Support Webpack 2, Webpack 3, rollup., thanks +- Support Webpack 2, Webpack 3, rollup., thanks [Matthew Schnee](https://github.com/mschnee) - [see PR](https://github.com/JedWatson/react-select/pull/2020) -* Add missing semicolon, thanks +- Add missing semicolon, thanks [jochenberger](https://github.com/jochenberger) - [see PR](https://github.com/JedWatson/react-select/pull/2018) -* autofocus --> autoFocus, thanks +- autofocus --> autoFocus, thanks [Charles Lee](https://github.com/gwyneplaine) - [see PR](https://github.com/JedWatson/react-select/pull/2002) -* Async> cache async response regardless of req order, thanks +- Async> cache async response regardless of req order, thanks [Timothy Hwang](https://github.com/timhwang21) - [see PR](https://github.com/JedWatson/react-select/pull/2012) -* Make this work in preact., thanks [liaoxuezhi](https://github.com/2betop) - +- Make this work in preact., thanks [liaoxuezhi](https://github.com/2betop) - [see PR](https://github.com/JedWatson/react-select/pull/2013) -* Correct release candidate version on README, thanks +- Correct release candidate version on README, thanks [Damon Aw](https://github.com/daemonsy) - [see PR](https://github.com/JedWatson/react-select/pull/2017) -* Fix test name, thanks [jochenberger](https://github.com/jochenberger) - +- Fix test name, thanks [jochenberger](https://github.com/jochenberger) - [see PR](https://github.com/JedWatson/react-select/pull/2005) -* Fixing css states to be scoped with Select selector, closes #1951., thanks +- Fixing css states to be scoped with Select selector, closes #1951., thanks [Adam Girton](https://github.com/agirton) - [see PR](https://github.com/JedWatson/react-select/pull/2000) -* fix typo, thanks [jochenberger](https://github.com/jochenberger) - +- fix typo, thanks [jochenberger](https://github.com/jochenberger) - [see PR](https://github.com/JedWatson/react-select/pull/1999) ## v1.0.0-rc.10 / 2017-09-13 -* changed; `openAfterFocus` prop has been renamed to `openOnClick`, and now +- changed; `openAfterFocus` prop has been renamed to `openOnClick`, and now defaults to `true` -* fixed; React.PropTypes deprecation warning, thanks +- fixed; React.PropTypes deprecation warning, thanks [Jeremy Liberman](https://github.com/MrLeebo) -* improved; scrolling behaviour when navigating the menu with the keyboard, +- improved; scrolling behaviour when navigating the menu with the keyboard, thanks [boatkorachal](https://github.com/boatkorachal) -* fixed; error with the `Async` cache when you type `"hasOwnProperty"`, thanks +- fixed; error with the `Async` cache when you type `"hasOwnProperty"`, thanks [SuhushinAS](https://github.com/SuhushinAS) ## v1.0.0-rc.9 / 2017-09-13 -* fixed; clearable padding style, thanks +- fixed; clearable padding style, thanks [Minori Miyauchi](https://github.com/mmiyauchi) -* fixed; removed use of `Object.assign`, fixes IE compatibility -* added; new `closeOnSelect` prop (defaults to `true`) that controls whether the +- fixed; removed use of `Object.assign`, fixes IE compatibility +- added; new `closeOnSelect` prop (defaults to `true`) that controls whether the menu is closed when an option is selected, thanks to [Michael Elgar](https://github.com/melgar) for the original idea -* changed; by default, the menu for multi-selects now closes when an option is +- changed; by default, the menu for multi-selects now closes when an option is selected -* changed; `Async` component no longer always clears options when one is +- changed; `Async` component no longer always clears options when one is selected (although the menu is now closed by default). Use `closeOnSelect={false} onSelectResetsInput={false}` to leave the menu open. -* fixed; `Async` component always called `onChange` even when it wasn't provided -* fixed; input lag for the `Async` component when results are returned from +- fixed; `Async` component always called `onChange` even when it wasn't provided +- fixed; input lag for the `Async` component when results are returned from cache -* fixed; required was not being updated without an onChange handler -* fixed; peer dependencies for `prop-types`, thanks +- fixed; required was not being updated without an onChange handler +- fixed; peer dependencies for `prop-types`, thanks [Michaël De Boey](https://github.com/MichaelDeBoey) -* fixed; internal optimisations, thanks +- fixed; internal optimisations, thanks [Kieran Boyle](https://github.com/dysfunc) -* added; `Value` component is now exported, thanks +- added; `Value` component is now exported, thanks [Prof Gra](https://github.com/Grahack) -* fixed; callback fired after `Async` component unmounts, thanks +- fixed; callback fired after `Async` component unmounts, thanks [Andrew Russell](https://github.com/DeadHeadRussell) -* fixed; wrapping on Firefox in SCSS files, thanks +- fixed; wrapping on Firefox in SCSS files, thanks [Michael Williamson](https://github.com/mwilliamson) ## v1.0.0-rc.8 / 2017-09-12 -* fixed; `onMenuScrollToBottom` does not work in chrome 58.0, thanks +- fixed; `onMenuScrollToBottom` does not work in chrome 58.0, thanks [Simon Hartcher](https://github.com/deevus) -* fixed; missing es6 module build for `js:next` entrypoint -* updated; `react-input-autosize@2.0.0` including several fixes for react-select +- fixed; missing es6 module build for `js:next` entrypoint +- updated; `react-input-autosize@2.0.0` including several fixes for react-select (see [changes](https://github.com/JedWatson/react-input-autosize/blob/master/HISTORY.md)) ## v1.0.0-rc.7 / 2017-09-11 -* fixed; issue with `lib` build preventing use in ES2015 environments +- fixed; issue with `lib` build preventing use in ES2015 environments ## v1.0.0-rc.6 / 2017-09-10 -* fixed; changing `required` prop from `true` to `false` now works as expected, +- fixed; changing `required` prop from `true` to `false` now works as expected, thanks [George Karagkiaouris](https://github.com/karaggeorge) -* added; new prop `onSelectResetsInput` controls whether the input value is +- added; new prop `onSelectResetsInput` controls whether the input value is cleared when options are selected, thanks [David Roeca](https://github.com/davidroeca) and [Alexander Nosov](https://github.com/nosovsh) -* fixed; tabindex parent bug fix for Edge, thanks +- fixed; tabindex parent bug fix for Edge, thanks [George Payne](https://github.com/George-A-Payne) -* fixed; update selectize link in README.md, thanks +- fixed; update selectize link in README.md, thanks [kerumen](https://github.com/kerumen) -* added; standard issue template, thanks [agirton](https://github.com/agirton) -* added; new build process using rollup and webpack. Removed grunt. thanks +- added; standard issue template, thanks [agirton](https://github.com/agirton) +- added; new build process using rollup and webpack. Removed grunt. thanks [gwyneplaine](https://github.com/gwyneplaine) -* fixed; updated contributor docs with the correct node version reference +- fixed; updated contributor docs with the correct node version reference [gwyneplaine](https://github.com/gwyneplaine) -* fixed; missing method binds in Option, thanks +- fixed; missing method binds in Option, thanks [agirton](https://github.com/agirton) -* fixed; converted components to use es6 classes, thanks +- fixed; converted components to use es6 classes, thanks [jochenberger](https://github.com/jochenberger) -* fixed; console.log example in usage docs, thanks +- fixed; console.log example in usage docs, thanks [rohmanhm](https://github.com/rohmanhm) -* fixed; hide create option after closing menu, thanks +- fixed; hide create option after closing menu, thanks [andreme](https://github.com/andreme) -* fixed; remove circular reference, thanks [agirton](https://github.com/agirton) -* fixed; readme typo, thanks [ieldanr](https:/github.com/ieldanr) -* fixed; add missing function binds in Option component, thanks +- fixed; remove circular reference, thanks [agirton](https://github.com/agirton) +- fixed; readme typo, thanks [ieldanr](https:/github.com/ieldanr) +- fixed; add missing function binds in Option component, thanks [agirton](https://github.com/agirton) and [blacktemplar](https://github.com/blacktemplar) -* fixed; re-added fix to +- fixed; re-added fix to [#1580](https://github.com/JedWatson/react-select/issues/1580), thanks [agirton](https://github.com/agirton) -* fixed; avoid mutating user inputs when ignoring case/accents, thanks +- fixed; avoid mutating user inputs when ignoring case/accents, thanks [not-an-aardvark](https://github.com/not-an-aardvark) -* fixed; issues synchronising options props in `Async`, thanks +- fixed; issues synchronising options props in `Async`, thanks [cbergmiller](https://github.com/cbergmiller) -* fixed; backspace handling for non-multi select controls, thanks +- fixed; backspace handling for non-multi select controls, thanks [Jeremy Liberman](https://github.com/MrLeebo) ## v1.0.0-rc.5 / 2017-05-25 -* fixed; Allow `falsey` values to be clearable, thanks +- fixed; Allow `falsey` values to be clearable, thanks [Simon Gaestel](https://github.com/sgaestel) -* fixed; issue where Firefox would crash due to incorrect use of `aria-owns` +- fixed; issue where Firefox would crash due to incorrect use of `aria-owns` attribute, thanks [Max Hubenthal](https://github.com/mhubenthal) -* fixed; regression where options not using the value key couldn't be focused, +- fixed; regression where options not using the value key couldn't be focused, thanks [Benjamin Piouffle](https://github.com/Betree) ## v1.0.0-rc.4 / 2017-05-14 -* fixed; no more warning when using React 15.5, thanks +- fixed; no more warning when using React 15.5, thanks [Adam Girton](https://github.com/agirton) -* fixed; issue comparing objects in `getFocusableOptionIndex`, thanks +- fixed; issue comparing objects in `getFocusableOptionIndex`, thanks [rndm2](https://github.com/rndm2) -* fixed; missing .focus() method in `Creatable`, thanks +- fixed; missing .focus() method in `Creatable`, thanks [Anton Alexandrenok](https://github.com/the-spyke) -* added; support for `aria-describedby` attribute, thanks +- added; support for `aria-describedby` attribute, thanks [Eric Lee](https://github.com/ericj17) -* added; `.is-clearable` className when clearable is true, thanks +- added; `.is-clearable` className when clearable is true, thanks [Dan Diaz](https://github.com/dan-diaz) ## v1.0.0-rc.3 / 2017-02-01 -* added; `arrowRenderer` prop, thanks [Brian Vaughn](https://github.com/bvaughn) -* added; child-function support to `Async` and `Creatable` components so that +- added; `arrowRenderer` prop, thanks [Brian Vaughn](https://github.com/bvaughn) +- added; child-function support to `Async` and `Creatable` components so that they can compose each other (or future HOCs), thanks [Brian Vaughn](https://github.com/bvaughn) -* added; `asyncCreatable` HOC that combines `Async` and `Creatable` so they can +- added; `asyncCreatable` HOC that combines `Async` and `Creatable` so they can be used together, thanks [Brian Vaughn](https://github.com/bvaughn) -* added; undocumented arguments for `menuRenderer`, thanks +- added; undocumented arguments for `menuRenderer`, thanks [Julian Krispel-Samsel](https://github.com/juliankrispel) -* fixed; Do not focus and open menu when disabled, thanks +- fixed; Do not focus and open menu when disabled, thanks [nhducit](https://github.com/nhducit) -* fixed; Scrolling with arrow-keys is not working correctly, thanks +- fixed; Scrolling with arrow-keys is not working correctly, thanks [Damian Pieczynski](https://github.com/piecyk) -* added; "select all text" functionality `Shift+Home|Del`, thanks +- added; "select all text" functionality `Shift+Home|Del`, thanks [Damian Pieczynski](https://github.com/piecyk) -* added; support for `boolean` values, thanks +- added; support for `boolean` values, thanks [Aaron Hardy](https://github.com/Aaronius) -* fixed; Remove duplicated `promptTextCreator` field from readme, thanks +- fixed; Remove duplicated `promptTextCreator` field from readme, thanks [Jih-Chi Lee](https://github.com/jihchi) -* fixed; Adding back ref that was removed in rc2, thanks +- fixed; Adding back ref that was removed in rc2, thanks [Martin Jujou](https://github.com/jooj123) -* fixed; `Creatable` component doesn't allow input key down handling, thanks +- fixed; `Creatable` component doesn't allow input key down handling, thanks [Ivan Leonenko](https://github.com/IvanLeonenko) -* added; Allow react nodes to be passed as loadingPlaceholder, thanks +- added; Allow react nodes to be passed as loadingPlaceholder, thanks [Daniel Heath](https://github.com/DanielHeath) -* fixed; IE8 compatibility issues, thanks +- fixed; IE8 compatibility issues, thanks [Kirill Mesnyankin](https://github.com/strayiker) -* improved; Allow users to specify noResultsText, thanks +- improved; Allow users to specify noResultsText, thanks [Daniel Heath](https://github.com/DanielHeath) -* added; Only remove options if a loading placeholder is available, thanks +- added; Only remove options if a loading placeholder is available, thanks [Daniel Heath](https://github.com/DanielHeath) -* fixed; firefox display items in two rows due to reflow, thanks +- fixed; firefox display items in two rows due to reflow, thanks [Daniel Heath](https://github.com/DanielHeath) -* fixed; `Creatable` readme typo, thanks [Ben](https://github.com/rockingskier) -* fixed; explain way to implement `allowCreate` functionality with `Creatable` +- fixed; `Creatable` readme typo, thanks [Ben](https://github.com/rockingskier) +- fixed; explain way to implement `allowCreate` functionality with `Creatable` to readme, thanks [mayerwin](https://github.com/mayerwin) -* added; delete key removes an item when there is no input, thanks +- added; delete key removes an item when there is no input, thanks [forum-is](https://github.com/forum-is) -* added; `onNewOptionClick` handler for `Creatable`, thanks +- added; `onNewOptionClick` handler for `Creatable`, thanks [Lee Siong Chan](https://github.com/leesiongchan) -* fixed; `onInputChange` consistent for `Creatable`, thanks +- fixed; `onInputChange` consistent for `Creatable`, thanks [Lee Siong Chan](https://github.com/leesiongchan) -* fixed; `menuRenderer` is treated consistently between `Creatable` and +- fixed; `menuRenderer` is treated consistently between `Creatable` and `Select`, thanks [Brian Vaughn](https://github.com/bvaughn) -* fixed; `asyncCreatable` options parsing will not parse undefined values into +- fixed; `asyncCreatable` options parsing will not parse undefined values into props, thanks [Romain Dardour](https://github.com/unity) -* added; pass `inputProps` to `inputRenderer`, thanks +- added; pass `inputProps` to `inputRenderer`, thanks [Alec Winograd](https://github.com/awinograd) -* fixed; no exception when clearing an Async field that is not set to multi, +- fixed; no exception when clearing an Async field that is not set to multi, thanks [Patrik Stutz](https://github.com/VanCoding) -* added; allow rendering a custom clear component, thanks +- added; allow rendering a custom clear component, thanks [Conor Hastings](https://github.com/conorhastings) -* fixed; document `ignoreAccents`, thanks +- fixed; document `ignoreAccents`, thanks [Domenico Matteo](https://github.com/dmatteo) -* fixed; arrowing up or down in `Select` with 0 options does not throw type +- fixed; arrowing up or down in `Select` with 0 options does not throw type error, thanks [Alex Howard](https://github.com/thezanke) -* fixed; `Creatable` handles null children prop, thanks +- fixed; `Creatable` handles null children prop, thanks [Jack Coulter](https://github.com/jscinoz) -* added; provide `isOpen` to arrowRenderer, thanks +- added; provide `isOpen` to arrowRenderer, thanks [Kuan](https://github.com/khankuan) -* fixed; re-added the `focus()` method on `Select.Async`, thanks, +- fixed; re-added the `focus()` method on `Select.Async`, thanks, [Maarten Claes](https://github.com/mcls) -* fixed; focus the next available option after a selection, not the top option, +- fixed; focus the next available option after a selection, not the top option, thanks [Nicolas Raynaud](https://github.com/nraynaud) Note there has also been a breaking change to the props for the `Async` @@ -766,64 +794,64 @@ was better to do this before declaring 1.0.0 stable. ## v1.0.0-rc.1 / 2016-09-04 -* fixed; reset value to `[]` when `multi=true`, thanks +- fixed; reset value to `[]` when `multi=true`, thanks [Michael Williamson](https://github.com/mwilliamson) -* added; pass index to `renderLabel` method, thanks +- added; pass index to `renderLabel` method, thanks [nhducit](https://github.com/nhducit) -* fixed; uncontrolled to controlled component warning in React 15.3 -* fixed; props cleanup, thanks +- fixed; uncontrolled to controlled component warning in React 15.3 +- fixed; props cleanup, thanks [Forbes Lindesay](https://github.com/ForbesLindesay) -* fixed; issue where a value of the number `0` would be assumed to be no value, +- fixed; issue where a value of the number `0` would be assumed to be no value, thanks [Hanwen Cheng](https://github.com/hanwencheng) -* fixed; internal refs converted to callbacks instead of strings, thanks +- fixed; internal refs converted to callbacks instead of strings, thanks [Johnny Nguyen](https://github.com/gojohnnygo) -* added; optional `instanceId` prop for server-side rendering, thanks +- added; optional `instanceId` prop for server-side rendering, thanks [Jevin Anderson](https://github.com/JevinAnderson) -* added; `onCloseResetsInput` prop, thanks +- added; `onCloseResetsInput` prop, thanks [Frankie](https://github.com/frankievx) -* added; `Creatable` component, replaces pre-1.0 `allowCreate` prop, thanks +- added; `Creatable` component, replaces pre-1.0 `allowCreate` prop, thanks [Brian Vaughn](https://github.com/bvaughn) ## v1.0.0-beta14 / 2016-07-17 -* fixed; `react-input-autosize` has been udpated to `1.1.0`, which includes +- fixed; `react-input-autosize` has been udpated to `1.1.0`, which includes fixes for the new warnings that React 15.2 logs -* fixed; "Unknown prop `inputClassName` on