You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CHANGELOG.md 79 KiB

3 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541
  1. # react-select
  2. ## 3.1.0
  3. ### Minor Changes
  4. - [4cf6c43c](https://github.com/JedWatson/react-select/commit/4cf6c43cc17a01b043fb60b33cad355d433fdf8c) [#3690](https://github.com/JedWatson/react-select/pull/3690) Thanks [@JedWatson](https://github.com/JedWatson)! - Add `isLoading` prop support to the AsyncSelect component (see #3690)
  5. ### Patch Changes
  6. - [83b48de4](https://github.com/JedWatson/react-select/commit/83b48de4a18263b361744fc5e89d9b9845b26e4f) [#3868](https://github.com/JedWatson/react-select/pull/3868) Thanks [@Tirzono](https://github.com/Tirzono)! - Fix for not focusing the selected value when the menu opens
  7. - [563b046a](https://github.com/JedWatson/react-select/commit/563b046a57a94c47950e62cedc4ce1c489f19f91) [#3794](https://github.com/JedWatson/react-select/pull/3794) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Convert class components that don't have to be class components to function components to reduce bundle size
  8. - [c7e9c697](https://github.com/JedWatson/react-select/commit/c7e9c697dada15ce3ff9a767bf914ad890080433) [#3682](https://github.com/JedWatson/react-select/pull/3682) Thanks [@JedWatson](https://github.com/JedWatson)! - Allow the input component to be a `textarea` element
  9. - [3c7de0de](https://github.com/JedWatson/react-select/commit/3c7de0de52826fe74d303a01475c43fe88256156) [#3090](https://github.com/JedWatson/react-select/pull/3090) Thanks [@akiselev](https://github.com/akiselev)! - Add aria attributes to dummy input
  10. - [d2a820ef](https://github.com/JedWatson/react-select/commit/d2a820efc70835adf864169eebc76947783a15e2) [#3537](https://github.com/JedWatson/react-select/pull/3537) Thanks [@jdelStrother](https://github.com/jdelStrother)! - Fix Flow issues. Refer to the linked PR for more details on the specific issues.
  11. - [fc52085b](https://github.com/JedWatson/react-select/commit/fc52085b969b1b6f53adf29d52469db9560b828c) [#3662](https://github.com/JedWatson/react-select/pull/3662) Thanks [@eemeli](https://github.com/eemeli)! - Update react-transition-group to ^4.3.0
  12. - [edb18dd3](https://github.com/JedWatson/react-select/commit/edb18dd3d65b8fbc342bde9e805c5e3293ab6e37) [#3797](https://github.com/JedWatson/react-select/pull/3797) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Enable Babel loose mode to improve bundle size
  13. ## 3.0.8
  14. ### Patch Changes
  15. - [a575a3c4](https://github.com/JedWatson/react-select/commit/a575a3c41798696620c77e8098c1150b4adda6cb) [#3727](https://github.com/JedWatson/react-select/pull/3727) Thanks [@tonytangau](https://github.com/tonytangau)! - Adding an `index` prop to `MultiValue` components
  16. - [916f0d2c](https://github.com/JedWatson/react-select/commit/916f0d2c651189bfeff2289d8d3cc597e06cb2ea) [#3644](https://github.com/JedWatson/react-select/pull/3644) Thanks [@TrySound](https://github.com/TrySound)! - Remove usage of `raf` package and replace with `window.requestAnimationFrame` because React already depends on `requestAnimationFrame`
  17. - [cba15309](https://github.com/JedWatson/react-select/commit/cba15309c4d7523ab6a785c8d5c0c7ec1048e22f) [#3676](https://github.com/JedWatson/react-select/pull/3676) Thanks [@wiesys](https://github.com/wiesys)! - Fix `loadingMessage` and `noOptionsMessage` properties in `Styles` flow type
  18. - [32f9475e](https://github.com/JedWatson/react-select/commit/32f9475e6d43a71000a3906da9e6d2d30710efd2) [#3790](https://github.com/JedWatson/react-select/pull/3790) Thanks [@JedWatson](https://github.com/JedWatson)! - Remove unnecessary dependency on `classnames` package
  19. - [1731175d](https://github.com/JedWatson/react-select/commit/1731175d790530b9dbfa787e3fffaff3fb0e44a0) [#3733](https://github.com/JedWatson/react-select/pull/3733) Thanks [@ddc67cd](https://github.com/ddc67cd)! - Pass `name` to `onChange` meta in `Creatable` to make it consistent with onChange in standard `Select`
  20. ## 3.0.7
  21. ### Patch Changes
  22. - [df864f2](https://github.com/JedWatson/react-select/commit/df864f2) - Include updated yarn.lock
  23. ## 3.0.6
  24. ### Patch Changes
  25. - [3e0a7a7](https://github.com/JedWatson/react-select/commit/3e0a7a7) - \* remove emotion 9 dep from mono repo (this wasn't being used anywhere)
  26. - update dep on react-input-autosize to 2.2.2 (adds UNSAFE prefix to deprecated lifecycles) (resolves #3773)
  27. ## 3.0.5
  28. ### Patch Changes
  29. - [270cc01](https://github.com/JedWatson/react-select/commit/270cc01) [#3719](https://github.com/JedWatson/react-select/pulls/3719) Thanks [@jossmac](https://github.com/jossmac)! - Leverage currentColor for loading indicator dots -- makes styling easier, and more consistent, for consumers
  30. - [bab8af1](https://github.com/JedWatson/react-select/commit/bab8af1) - Update lifecycle methods with UNSAFE prefix
  31. ## 3.0.4
  32. ### Patch Changes
  33. - [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
  34. - [#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
  35. - [#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
  36. - [#3532](https://github.com/JedWatson/react-select/pull/3532) Thanks [@alisonhall](https://github.com/alisonhall)! - Change aria-live assertive to polite
  37. ## 3.0.3
  38. - Remove base entrypoint to fix rollup dependency resolution issue
  39. ## 3.0.2
  40. - fix erroneous build
  41. ## 3.0.1
  42. - [patch][](https://github.com/JedWatson/react-select/commit/):
  43. - Add README.md file for npm
  44. ## 3.0.0
  45. - [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):
  46. - Upgrade emotion dependency from 9.x to 10.x [#3321](https://github.com/JedWatson/react-select/pull/3321)
  47. - Normalize Values [#3416](https://github.com/JedWatson/react-select/pull/3416)
  48. - Separate entrypoints for Async, Creatable and makeAnimated [#3541](https://github.com/JedWatson/react-select/pull/3541)
  49. - UMD builds deprecated
  50. - required react peer-dependecy of 16.8
  51. ## v2.4.4 / 2019-05-27
  52. ### BugFixes
  53. - [#3540] Fixed active styles previously being applied to disabled options. Thanks [@risenforces](https://github.com/risenforces)
  54. - [#3563] Fixed IME composition bugs in non Chrome browsers. Thanks [@jwilander](https://github.com/jwilander)
  55. ## v2.4.3 / 2019-03-17
  56. ### Bugfixes
  57. - [#3492](https://github.com/JedWatson/react-select/pull/3492) Add labels to fields to make inspection. [@destructobeam](https://github.com/destructobeam)
  58. - [#3442](https://github.com/JedWatson/react-select/pull/3442) Ignore keydown events on `Enter` in IME. [@sat0yu](https://github.com/sat0yu).
  59. - [#3343](https://github.com/JedWatson/react-select/pull/3343) fix lint issues. [@JoshMcCullough](https://github.com/JoshMcCullough).
  60. - [#3498](https://github.com/JedWatson/react-select/pull/3498) Fix async type. [@mufasa71](https://github.com/mufasa71)
  61. - [#3436](https://github.com/JedWatson/react-select/pull/3436) Allow Node as placeholder [@eemeli](https://github.com/eemeli).
  62. ## v2.4.2 / 2019-03-11
  63. ### Bug fixes
  64. - [#3446](https://github.com/JedWatson/react-select/pull/3446) Fix bug with select input value not being selectable. Thanks [kangweichan](https://github.com/kangweichan).
  65. - [#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).
  66. ## Updates
  67. - Fixed typo in style docs. Thanks [thiagodebastos](https://github.com/thiagodebastos).
  68. - [#3460](https://github.com/JedWatson/react-select/pull/3460) Added description for actionTypes to docs. Thanks [mikekellyio](https://github.com/mikekellyio)
  69. ## v2.4.1 / 2019-02-18
  70. ### Bug fixes
  71. - [#3432](https://github.com/JedWatson/react-select/pull/3432) Fix bug with select menu's not working on mobile.
  72. ## v2.4.0 / 2019-02-15
  73. ### Bug fixes
  74. - [#3427](https://github.com/JedWatson/react-select/pull/3427) remove focusOption() invocation on ENTER press if the menu is not open.
  75. - [#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)
  76. - [#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)
  77. - [#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)
  78. - [#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).
  79. - [#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).
  80. - [#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).
  81. - [#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)
  82. ### Updates
  83. - [#3370](https://github.com/JedWatson/react-select/pull/3370) Updated memoize-one dependency to 5.0.0. Thanks [adam187](https://github.com/adam187)
  84. - [#3366](https://github.com/JedWatson/react-select/pull/3366/files) Update build tooling, to leverage babel 7. Thanks [DragonWW](https://github.com/DragorWW)
  85. ## v2.3.0 / 2019-01-18
  86. ### Bug fixes
  87. - [#3315](https://github.com/JedWatson/react-select/pull/3315) add RAF call to Collapse component getRef() such that getBoundingClientRect() is invoked consistently.
  88. - [#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)
  89. - [#3357](https://github.com/JedWatson/react-select/pull/3357), fix loadOptions call in Async select to always pass in a string for the inputValue.
  90. - [#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.
  91. ### Features
  92. - [#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)
  93. ## v2.2.0 / 2018-12-28
  94. ### Bug Fixes
  95. - [#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.
  96. - [#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.
  97. - [#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.
  98. - [#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.
  99. - [#3299](https://github.com/JedWatson/react-select/pull/3299) fix to assistive text on menu open.
  100. ### Feature
  101. - [#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.
  102. ## v2.1.2 / 2018-11-22
  103. ### Bug fixes
  104. - [#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)
  105. - [#3096] Placeholder component now also receives the isFocused state value as a prop. Thanks [@Nelrohd](https://github.com/Nelrohd)
  106. - [#3060] Fix bug where trying to set the cursor somewhere in an input value would close the menu. Thanks [@stijndeschuymer](https://github.com/stijndeschuymer)
  107. - [#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)
  108. - [#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)
  109. - [#3013] Fixes bug where the menu would close on trying to scroll using the scroll bar in IE11. Thanks [@rakid](https://github.com/rakid)
  110. ### Misc
  111. - 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.
  112. - Thanks to [@IanVS](https://github.com/IanVS) for cleaning up our cypress tests.
  113. ## v2.1.1 / 2018-10-24
  114. ### Bug fixes
  115. - [#3132] Strip theme props from default Input and GroupHeading components, as they were polluting the DOM.
  116. - [#3131] Add support for the 'Delete' key in the internal onKeyDown method. Same functionality as 'Backspace'.
  117. - [#3100] Update flow-types and normalised default prop declarations in indicators. Thanks [iseredov](https://github.com/iseredov)
  118. ### Updates
  119. - [#3083] Added sideEffects property to package.json to support tree-shaking in webpack 4.x. Thanks [SimenB](https://github.com/SimenB).
  120. - [#3078] Update jest dependency to 23.6.0. Thanks [papandreou](https://github.com/papandreou)
  121. - [#3065] Update babel-plugin-emotion to 9.2.10. Thanks [mtzhang](https://github.com/mtzhang)
  122. - [#3108] Update docs to include instructions for replicating the simple-value use case within react-select v2. Thanks [elboletaire](https://github.com/elboletaire)
  123. ## v2.1.0 / 2018-10-03
  124. - [#2839] Added support for theming via theme prop. Thanks [akx](https://github.com/akx)
  125. - [#2874] Fixed flow-types of MultiValue components. Thanks [mike1808](https://github.com/mike1808)
  126. - [#2903] Fix missing form input when there isn't a selected value. Thanks [alvinsj](https://github.com/alvinsj)
  127. - [#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)
  128. - [#2876] Added overflow hidden to valueContainer to stop overflowing text in the control. Thanks [mike1808](https://github.com/mike1808)
  129. - [#2975] Separated menu placement logic from menu primitive. Thanks [jossmac](https://github.com/jossmac).
  130. ## v2.0.0 / 2018-07-23
  131. - async select now accepts a filterOptions function as a prop [#2822](https://github.com/JedWatson/react-select/pull/2822)
  132. - [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)
  133. - [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)
  134. - 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)
  135. - 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.
  136. - Added fix to support IME inputs. [#2767](https://github.com/JedWatson/react-select/pull/2767), thanks [shamabe](https://github.com/shamabe)
  137. - 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)
  138. - 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)
  139. - [#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)
  140. - [#2652](https://github.com/JedWatson/react-select/pull/2652), Async Select now re-evaluates defaultOptions on componentWillReceiveProps. Thanks [jesstelford](https://github.com/jesstelford)
  141. ## v2.0.0-beta.7 / 2018-07-03
  142. - 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).
  143. - Internal ref `input` is now `inputRef` for consistency.
  144. - Internal ref `menuRef` is now `menuListRef` for consistency.
  145. - Fixed bug with MultiValueRemove interaction not working in mobile [#2762](https://github.com/JedWatson/react-select/pull/2762), thanks [chuckbergeron](https://github.com/chuckbergeron).
  146. - 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)
  147. - Added functionality to not render the menu if `noOptionsMessage` or `loadingMessage` are set to null. [#2754](https://github.com/JedWatson/react-select/pull/2754)
  148. - Fixed bug with mobile menu being blocked when `menuShouldBlockScroll` is true.
  149. [#2756](https://github.com/JedWatson/react-select/pull/2756)
  150. - 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
  151. - Updates to flow types, thanks [mike1808](https://github.com/mike1808), [himerus](https://github.com/himerus),
  152. [teamable-software](https://github.com/teamable-software) and
  153. - Bumped internal flow-bin dependency to 0.72.0, [#2646](https://github.com/JedWatson/react-select/pull/2646) thanks [lunij](https://github.com/lunij)
  154. - 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.
  155. - [#2733](https://github.com/JedWatson/react-select/issues/2733), fixed classname bug to do with prefixing classes with modifiers.
  156. - [#2723](https://github.com/JedWatson/react-select/issues/2732), fixed emotion compilation bug blocking loadingDot rendering.
  157. - [#2749](https://github.com/JedWatson/react-select/pull/2749) fixed typo in docs. thanks [JuhQ](https://github.com/juhq)
  158. - [#2717](https://github.com/JedWatson/react-select/pull/2717) added selected value to onChange to accommodate multi-select, thanks [SimeonC](https://github.com/simeonc)
  159. ## v2.0.0-beta.6 / 2018-05-23
  160. - Fixed bug with `css` attribute being wrongly applied to a DOM element in SingleValue. Thanks [guigs](http://github.com/guigs)
  161. - Added `removedValue` to the `actionMeta` of the `remove-value` action that's passed into the `onChange` prop.
  162. - 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.
  163. - selectValue now filters items based on the getOptionValue method. Thanks (inv8der)[http://github.com/inv8der]
  164. - Added `createOptionPosition` to creatable select to allow users to specify where the createOption element appears in the menu.
  165. - Added touch handling logic to detect user intent to scroll the page when interacting with the select control.
  166. ## v2.0.0-beta.5 / 2018-05-18
  167. - Added `controlShouldRenderValue` prop, defaults to true. Setting it to false disables rendering values in the control. Thanks[Joss Mackison](http://github.com/jossmac)
  168. ## v2.0.0-beta.4 / 2018-05-15
  169. - Fixed bug where transition props were being spread onto the DummyInput causing react warnings in the console. Thanks [Mike Gardner](https://github.com/MikeLimeRocket)
  170. ## v2.0.0-beta.3 / 2018-05-14
  171. **Note**: There is an important change in this release to the behaviour of `className`.
  172. Previously, `className` would control the class names applied to internal components
  173. as well as the containing element. Now, the `className` prop only controls the class
  174. name of the containing element, and the new prop `classNamePrefix` controls classes
  175. applies to internal components.
  176. Until 2.0.0 final is released, we have added backwards compatibility and a deprecation
  177. warning to cover this change.
  178. - Added `classNamePrefix` prop, which now controls the class names applied to internal components
  179. - Refactored cx internal implementation to reduce specificity of css-in-jss base styles.
  180. - `maxValueHeight` prop removed
  181. - Added `--is-disabled` className modifier to Option component, thanks [eemeli](https://github.com/eemeli)
  182. - Fixed various IE11 issues, see [#2583](https://github.com/JedWatson/react-select/issues/2583)
  183. - Added multi-value keyboard navigation using left and right arrows.
  184. - Simplified flow distribution, thanks [falconmick](https://github.com/falconmick)
  185. - Added fix to ensure focus is on the Input when the menu opens
  186. ## v2.0.0-beta.2 / 2018-04-25
  187. - Switched from glam to [emotion](https://emotion.sh) for css-in-js
  188. - Input colour can now be changed
  189. - Use of React 16 Fragment removed, 2.0.0 should work with React 15
  190. - SSR support improved
  191. - Indicator icons are now exported
  192. ## v2.0.0-beta.1 / 2018-04-20
  193. - Added `tabIndex` prop
  194. - Added `classNames` prop
  195. - Added upgrade guide from v1 --> v2
  196. - Fixed bug with overflowing long values in the control
  197. - Fixed ie11 bug to do with absolutely positioned children in flex parent.
  198. - Documentation ie11, styling and copy improvements
  199. ## v2.0.0-alpha.11 / 2018-04-12
  200. Minor fix since last alpha:
  201. - Fixed a flow type issue that was causing issues for consumers
  202. ## v2.0.0-alpha.10 / 2018-04-10
  203. Minor fix since last alpha:
  204. - Fixed an issue with `dist/react-select.es.js` where `babelHelpers` weren't defined
  205. ## v2.0.0-alpha.9 / 2018-04-10
  206. Ongoing rewrite. Major changes since last alpha:
  207. - Added `openMenuOnClick` and `openMenuOnFocus` props
  208. - Significant test coverage and documentation improvements
  209. - Added `onMenuScrollToTop` and `onMenuScrollToBottom` event props
  210. - `scrollMenuIntoView` prop renamed `menuShouldScrollIntoView`
  211. - `onKeyDown` now based on event.key not event.keyCode
  212. - Component ids no longer have double separators
  213. - Fixed a Firefox bug with `position: absolute` and `display: flex`
  214. - Added support for fixed position menu and scroll blocking
  215. - Fixed issue with transition group props being passed to child components
  216. - Fixed issue with portalled menu display when `menuPlacement="top"`
  217. ## v2.0.0-alpha.8 / 2018-02-20
  218. Ongoing rewrite. Major changes since last alpha:
  219. - Made `focus` and `blur` methods work consistently when composing HOCs
  220. - Added `menuPortalTarget` prop which portals the menu, with a `MenuPortal` component and `menuPortal` style key
  221. - Allow the `MultiValueRemove` component children to be changed
  222. - Lots of new tests, updates to documentation and examples
  223. ## v2.0.0-alpha.7 / 2018-02-14
  224. Ongoing rewrite. Major changes since last alpha:
  225. - Significantly improved touch and mobile support
  226. - New positioning behaviour for the Menu
  227. - Added `scrollMenuIntoView` prop, which does exactly what you'd expect
  228. - Added action meta to the `onInputChange` event handler arguments
  229. - `Creatable` Component Added
  230. - `AsyncCreatable` Component Added
  231. - Fixed an issue with the layout that would trigger a Firefox repaint bug
  232. - Improved behaviour when the `isDisabled` prop value is changed
  233. - The `IndicatorSeparator` isn't rendered when there is no `DropdownIndicator`
  234. - Converted `StateManager` to a higher order component
  235. - New website, docs, and more tests! (still WIP)
  236. - Examples can now be launched in CodeSandbox, thanks to [Ben Conolly](https://github.com/noviny)
  237. ## v2.0.0-alpha.6 / 2018-02-14
  238. Ongoing rewrite. Major changes since last alpha:
  239. - `menuIsOpen`, `inputValue` and `value` are now controllable props that default to internal state
  240. - Fixed missing loading indicator
  241. - Added "open in code sandbox" to all examples
  242. - Switched menu rendering from li to div tags for better screen reader usability
  243. - Removed unused primitives and simplified indicator components
  244. - Improved accessibility of groups and options, cleaned up Group implementation
  245. - Fixed some input alignment issues
  246. - Added right-to-left support with `isRtl` prop
  247. - Support blocking page scroll at menu boundaries with `captureMenuScroll` prop
  248. - Added automatic menu flipping at window boundaries with `menuPlacement` and `menuShouldFlip` props
  249. - Added `isSearchable` prop to support simple (not searchable) select inputs
  250. - Added `pageSize` prop
  251. ## v2.0.0-alpha.5 / 2018-02-07
  252. Ongoing rewrite. Major changes since last alpha:
  253. - Fixed an issue where animated values would show ellipsis while leaving
  254. - Long single values are now also correctly truncated
  255. ## v2.0.0-alpha.4 / 2018-02-06
  256. Ongoing rewrite. Major changes since last alpha:
  257. - Added support for Promises in the Async component
  258. - Added `setValue` method on the Select class
  259. - More consistent use of `innerProps` for internal components
  260. - Internal components are now provided a consistent set of props and API
  261. - Improved handling of keyboard and mouse interaction for options in the menu
  262. - Default filtering behaviour now has parity with v1
  263. - New `createFilter` method lets you customise the filter options
  264. - Some unnecessary components have been removed for better performance
  265. - Long values are now truncated
  266. ## v2.0.0-alpha.3 / 2018-02-02
  267. Ongoing rewrite. Major changes since last alpha:
  268. - Added `getOptionValue`, `getOptionLabel` and `formatOptionLabel` props
  269. - Added `isOptionSelected` and `isOptionDisabled` props
  270. - Added `name` and `delimiter` props to support hidden html inputs for forms
  271. - Added `loadingMessage`, `noOptionsMessage` and `screenReaderStatus` props so messages can be customised
  272. - Customisable components are now passed `innerProps` for simpler implementation
  273. - Cleaned up internal Components and made sure they can all be styled
  274. - Implemented customisable filtering function with support for case and diacritics
  275. - Fixed various css bugs and vendor prefixing issues
  276. - Accessibility improvements
  277. ## v2.0.0-alpha.2 / 2018-01-25
  278. Ongoing rewrite. Major changes since last alpha:
  279. - `Async` component added
  280. - `styles` prop added to Select component
  281. - `isLoading` prop to Select component and new indicator added
  282. - Support added for disabled options
  283. - Internal components cleaned up
  284. - Cypress tests added
  285. - CSS class names added to default components
  286. - Accessibility improvements
  287. ## v2.0.0-alpha.1 / 2018-01-12
  288. Complete rewrite, docs and upgrade notes on changes from v1 to come later.
  289. ## v1.2.1 / 2018-01-13
  290. - 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)
  291. - 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)
  292. - Fixed dropdown menu positioning issues in IE 11, thanks [jharris4](https://github.com/jharris4) - [see PR](https://github.com/JedWatson/react-select/pull/2273)
  293. - Added missing rule to the `scss` stylesheet, thanks [Jordan Whitfield](https://github.com/mantissa7) - [see PR](https://github.com/JedWatson/react-select/pull/2280)
  294. > > > > > > > master
  295. ## v1.2.0 / 2018-01-08
  296. - Source cleanup, thanks to [Yuri S](https://github.com/yuri-sakharov) and
  297. [Charles Lee](https://github.com/gwyneplaine) -
  298. [see PR](https://github.com/JedWatson/react-select/pull/2262)
  299. - Switched from babel-preset-es2015 to babel-preset-env, thanks
  300. [Rambabu Yadlapalli](https://github.com/RamYadlapalli) -
  301. [see PR](https://github.com/JedWatson/react-select/pull/2254)
  302. - Fixed focused option. Issue #2237, thanks
  303. [Yuri S](https://github.com/yuri-sakharov) -
  304. [see PR](https://github.com/JedWatson/react-select/pull/2245)
  305. - Fix onSelectResetsInput bug from keyboard navigation, thanks
  306. [Charles Lee](https://github.com/gwyneplaine) -
  307. [see PR](https://github.com/JedWatson/react-select/pull/2259)
  308. - Fixed all warnings on running tests, thanks
  309. [Yuri S](https://github.com/yuri-sakharov) -
  310. [see PR](https://github.com/JedWatson/react-select/pull/2231)
  311. - Added missing tests for Option.js and refactored Option-test.js., thanks
  312. [Yuri S](https://github.com/yuri-sakharov) -
  313. [see PR](https://github.com/JedWatson/react-select/pull/2249)
  314. - Added missing tests for Async.js, thanks
  315. [Yuri S](https://github.com/yuri-sakharov) -
  316. [see PR](https://github.com/JedWatson/react-select/pull/2250)
  317. - Fixed console error in GitHub users example, thanks
  318. [Yuri S](https://github.com/yuri-sakharov) -
  319. [see PR](https://github.com/JedWatson/react-select/pull/2244)
  320. - Fixed readme example. Issue #2235, thanks
  321. [Yuri S](https://github.com/yuri-sakharov) -
  322. [see PR](https://github.com/JedWatson/react-select/pull/2246)
  323. - Regression fix for single select with onSelectResetsInput=false, thanks
  324. [Yuri S](https://github.com/yuri-sakharov) -
  325. [see PR](https://github.com/JedWatson/react-select/pull/2226)
  326. - Pass placeholder prop to ValueComponent, thanks
  327. [Aravind Srivatsan](https://github.com/aravindsrivats) -
  328. [see PR](https://github.com/JedWatson/react-select/pull/2225)
  329. - Refactored handleKeyDown switch, thanks
  330. [Yuri S](https://github.com/yuri-sakharov) -
  331. [see PR](https://github.com/JedWatson/react-select/pull/2228)
  332. - onSelectResetsInput regression fixed, thanks
  333. [Jed Watson](https://github.com/dehamilton) -
  334. [see PR](https://github.com/JedWatson/react-select/pull/2215)
  335. - Don't open drop down menu when clear values, thanks
  336. [Jed Watson](https://github.com/Chopinsky) -
  337. [see PR](https://github.com/JedWatson/react-select/pull/2198)
  338. - Clear input value on receiving props with another value., thanks
  339. [Yuri S](https://github.com/yuri-sakharov) -
  340. [see PR](https://github.com/JedWatson/react-select/pull/2183)
  341. - Fix/is option unique crash, thanks [Jacob Zuo](https://github.com/Chopinsky) -
  342. [see PR](https://github.com/JedWatson/react-select/pull/2185)
  343. - Use react-input-autosize v2.1.2 for guard against undefined window, thanks
  344. [DStyleZ](https://github.com/sximba) -
  345. [see PR](https://github.com/JedWatson/react-select/pull/2187)
  346. - Fix issue #2182, thanks [Kurt Hoyt](https://github.com/kurtinatlanta) -
  347. [see PR](https://github.com/JedWatson/react-select/pull/2213)
  348. - Documenting behavior of onBlurResetsInput in the readme., thanks
  349. [hobbsl](https://github.com/levininja) -
  350. [see PR](https://github.com/JedWatson/react-select/pull/2212)
  351. - Use onSelectResetsInput for single select, thanks
  352. [lachiet](https://github.com/lachiet) -
  353. [see PR](https://github.com/JedWatson/react-select/pull/2205)
  354. - Fix state value in README example, thanks
  355. [Srishan Bhattarai](https://github.com/srishanbhattarai) -
  356. [see PR](https://github.com/JedWatson/react-select/pull/2192)
  357. - document breaking change of removing getInputValue, thanks
  358. [Turadg Aleahmad](https://github.com/turadg) -
  359. [see PR](https://github.com/JedWatson/react-select/pull/2195)
  360. - Fixed search for invalid label and/or value, thanks
  361. [Yuri S](https://github.com/yuri-sakharov) -
  362. [see PR](https://github.com/JedWatson/react-select/pull/2179)
  363. ## v1.1.0 / 2017-11-28
  364. - added; more props are passed to the Option component: `focusOption`,
  365. `inputValue`, `selectValue`, `removeValue`
  366. - added; the `inputValue` is passed as the third argument to the
  367. `optionRenderer`
  368. - fixed; issues opening the menu correctly for multiselect when
  369. `autosize={false}`
  370. - fixed; removed `event.stopPropagation()` from Select's `clearValue` and
  371. `onClick` handlers, thanks [Thomas Burke](https://github.com/etburke)
  372. - fixed; `handleMouseDownOnArrow` when `openOnClick={false}`, thanks
  373. [elias ghali](https://github.com/elghali)
  374. - fixed; conditional scrolling into view of focused option, thanks
  375. [Michael Lewis](https://github.com/mtlewis)
  376. ## v1.0.1 / 2017-11-24
  377. - reintroduced source files for scss and less stylesheets into the npm package
  378. ## v1.0.0 / 2017-11-23
  379. - breaking; removed `getInputValue` function -
  380. [see PR](https://github.com/JedWatson/react-select/pull/2108)
  381. - reverted spacebar-selects-option behaviour for searchable selects, thanks
  382. [Charles Lee](https://github.com/gwyneplaine) -
  383. [see PR](https://github.com/JedWatson/react-select/pull/2163)
  384. - fixed behaviour where async doesn't handle onInputChange returning a value,
  385. thanks [Anton](https://github.com/tehbi4) -
  386. [see PR](https://github.com/JedWatson/react-select/pull/2133)
  387. - fixed Creatable bug where the first enter keypress is ignored when
  388. `promptTextCreator` returns only the label, thanks
  389. [George Karagkiaouris](https://github.com/karaggeorge) -
  390. [see PR](https://github.com/JedWatson/react-select/pull/2140)
  391. - Utility functions are now exported from the es6 build, thanks
  392. [Deiru](https://github.com/Deiru2k) -
  393. [see PR](https://github.com/JedWatson/react-select/pull/2154)
  394. - Update aria-only class to have absolute positioning, thanks
  395. [Jacob Hilker](https://github.com/JHilker) -
  396. [see PR](https://github.com/JedWatson/react-select/pull/1243)
  397. - gives possibility to use ref property for Creatable, thanks
  398. [blacktemplar](https://github.com/blacktemplar) -
  399. [see PR](https://github.com/JedWatson/react-select/pull/1646)
  400. - Adds lint and test pre-commit hooks, thanks
  401. [carymcpoland](https://github.com/mcpolandc) -
  402. [see PR](https://github.com/JedWatson/react-select/pull/2077)
  403. - Disable some browser-specific behaviours that break the input, thanks
  404. [Jed Watson](https://github.com/JedWatson) -
  405. [see PR](https://github.com/JedWatson/react-select/pull/2101)
  406. - onOpen: run after dom has rendered, thanks
  407. [Karl-Aksel Puulmann](https://github.com/macobo) -
  408. [see PR](https://github.com/JedWatson/react-select/pull/#1756)
  409. - fix not clearing when given invalid values, from #1756, thanks
  410. [Mário][https://github.com/ticklemynausea] -
  411. [see PR](https://github.com/JedWatson/react-select/pull/2100)
  412. - Exports Option Component, thanks
  413. [Erkelens, Jan Paul](https://github.com/jperkelens) -
  414. [see PR](https://github.com/JedWatson/react-select/pull/2097)
  415. - Fix/numeric multi select, thanks
  416. [Charles Lee](https://github.com/gwyneplaine) -
  417. [see PR](https://github.com/JedWatson/react-select/pull/2086)
  418. - removeSelected prop (round 2), for optionally keeping selected values in
  419. dropdown, thanks [Jed Watson](https://github.com/banderson) -
  420. [see PR](https://github.com/JedWatson/react-select/pull/1891)
  421. - pass removeValue() and always pass valueArray, thanks
  422. [kcliu](https://github.com/kcliu) -
  423. [see PR](https://github.com/JedWatson/react-select/pull/1850)
  424. - Accessibility Enhancements - Aria tags, Space/Enter keys, thanks
  425. [sushmabadam](https://github.com/sushmabadam) -
  426. [see PR](https://github.com/JedWatson/react-select/pull/1428)
  427. - added rtl support, thanks [Dekel](https://github.com/dekelb) -
  428. [see PR](https://github.com/JedWatson/react-select/pull/1613)
  429. - Add inputValue to menuRenderer, thanks
  430. [headcanon](https://github.com/chronick) -
  431. [see PR](https://github.com/JedWatson/react-select/pull/1732)
  432. - fix typo in handleKeyDown method, thanks
  433. [jasonchangxo](https://github.com/jasonchangxo) -
  434. [see PR](https://github.com/JedWatson/react-select/pull/2088)
  435. - Fix/numeric multi select, thanks
  436. [Charles Lee](https://github.com/gwyneplaine) -
  437. [see PR](https://github.com/JedWatson/react-select/pull/2086)
  438. - expose children in AsyncCreatable.js, thanks
  439. [Charles Lee](https://github.com/gwyneplaine) -
  440. [see PR](https://github.com/JedWatson/react-select/pull/2084)
  441. - replace trim fn loop with regex, thanks
  442. [Charles Lee](https://github.com/gwyneplaine) -
  443. [see PR](https://github.com/JedWatson/react-select/pull/2085)
  444. - Trim search text from beginning and the end. (fixes #1861), thanks
  445. [Serkan Ozer](https://github.com/serkanozer) -
  446. [see PR](https://github.com/JedWatson/react-select/pull/1862)
  447. - Add variable for focused input background, thanks
  448. [Aron Strandberg](https://github.com/aronstrandberg) -
  449. [see PR](https://github.com/JedWatson/react-select/pull/1998)
  450. - Added id in the input select, thanks
  451. [thecreazy](https://github.com/thecreazy) -
  452. [see PR](https://github.com/JedWatson/react-select/pull/2027)
  453. - adding a nvmrc file and adding coverage to eslintignore, thanks
  454. [Dave Birch](https://github.com/uxtx) -
  455. [see PR](https://github.com/JedWatson/react-select/pull/1137)
  456. - Updated the comment for the deleteRemoves option., thanks
  457. [Abul Dider](https://github.com/dider7) -
  458. [see PR](https://github.com/JedWatson/react-select/pull/2078)
  459. - implemented optional rendering of arrow, thanks
  460. [rolandjohann](https://github.com/rolandjohann) -
  461. [see PR](https://github.com/JedWatson/react-select/pull/1761)
  462. - Skip rendering arrow wrapper when custom arrow renderer returns falsy value,
  463. thanks [Mike Lewis](https://github.com/mtlewis) -
  464. [see PR](https://github.com/JedWatson/react-select/pull/2055)
  465. - do not show clear button if value is an empty string, thanks
  466. [Marie Godon](https://github.com/mariegodon) -
  467. [see PR](https://github.com/JedWatson/react-select/pull/2074)
  468. - Set isLoading to false if cache hit, thanks
  469. [timhwang21](https://github.com/timhwang21) -
  470. [see PR](https://github.com/JedWatson/react-select/pull/2042)
  471. - Add aria-labels to Options, thanks
  472. [jasonchangxo](https://github.com/jasonchangxo) -
  473. [see PR](https://github.com/JedWatson/react-select/pull/2036)
  474. - Adds source links to each example, thanks
  475. [Damon Bauer](https://github.com/damonbauer) -
  476. [see PR](https://github.com/JedWatson/react-select/pull/2051)
  477. - Issue #2056: onInputChange should return modified value, thanks
  478. [Caleb Scholze](https://github.com/cscholze) -
  479. [see PR](https://github.com/JedWatson/react-select/pull/2057)
  480. - Remove option `addLabelText` from README and propTypes, thanks
  481. [Jannes Jeising](https://github.com/jjeising) -
  482. [see PR](https://github.com/JedWatson/react-select/pull/2040)
  483. - GitHub has a capital H, thanks
  484. [David Baumgold](https://github.com/singingwolfboy) -
  485. [see PR](https://github.com/JedWatson/react-select/pull/2053)
  486. - refactor componentWillUnmount(), thanks
  487. [riophae](https://github.com/riophae) -
  488. [see PR](https://github.com/JedWatson/react-select/pull/2064)
  489. - Slim down NPM package, thanks [Valentin Agachi](https://github.com/avaly) -
  490. [see PR](https://github.com/JedWatson/react-select/pull/2062)
  491. - Update contributing doc, thanks [Gregg Brewster](https://github.com/greggb) -
  492. [see PR](https://github.com/JedWatson/react-select/pull/2059)
  493. - strip proptypes in production build (fixes #1882), thanks
  494. [Jochen Berger](https://github.com/jochenberger) -
  495. [see PR](https://github.com/JedWatson/react-select/pull/2003)
  496. - Support Webpack 2, Webpack 3, rollup., thanks
  497. [Matthew Schnee](https://github.com/mschnee) -
  498. [see PR](https://github.com/JedWatson/react-select/pull/2020)
  499. - Add missing semicolon, thanks
  500. [jochenberger](https://github.com/jochenberger) -
  501. [see PR](https://github.com/JedWatson/react-select/pull/2018)
  502. - autofocus --> autoFocus, thanks
  503. [Charles Lee](https://github.com/gwyneplaine) -
  504. [see PR](https://github.com/JedWatson/react-select/pull/2002)
  505. - Async> cache async response regardless of req order, thanks
  506. [Timothy Hwang](https://github.com/timhwang21) -
  507. [see PR](https://github.com/JedWatson/react-select/pull/2012)
  508. - Make this work in preact., thanks [liaoxuezhi](https://github.com/2betop) -
  509. [see PR](https://github.com/JedWatson/react-select/pull/2013)
  510. - Correct release candidate version on README, thanks
  511. [Damon Aw](https://github.com/daemonsy) -
  512. [see PR](https://github.com/JedWatson/react-select/pull/2017)
  513. - Fix test name, thanks [jochenberger](https://github.com/jochenberger) -
  514. [see PR](https://github.com/JedWatson/react-select/pull/2005)
  515. - Fixing css states to be scoped with Select selector, closes #1951., thanks
  516. [Adam Girton](https://github.com/agirton) -
  517. [see PR](https://github.com/JedWatson/react-select/pull/2000)
  518. - fix typo, thanks [jochenberger](https://github.com/jochenberger) -
  519. [see PR](https://github.com/JedWatson/react-select/pull/1999)
  520. ## v1.0.0-rc.10 / 2017-09-13
  521. - changed; `openAfterFocus` prop has been renamed to `openOnClick`, and now
  522. defaults to `true`
  523. - fixed; React.PropTypes deprecation warning, thanks
  524. [Jeremy Liberman](https://github.com/MrLeebo)
  525. - improved; scrolling behaviour when navigating the menu with the keyboard,
  526. thanks [boatkorachal](https://github.com/boatkorachal)
  527. - fixed; error with the `Async` cache when you type `"hasOwnProperty"`, thanks
  528. [SuhushinAS](https://github.com/SuhushinAS)
  529. ## v1.0.0-rc.9 / 2017-09-13
  530. - fixed; clearable padding style, thanks
  531. [Minori Miyauchi](https://github.com/mmiyauchi)
  532. - fixed; removed use of `Object.assign`, fixes IE compatibility
  533. - added; new `closeOnSelect` prop (defaults to `true`) that controls whether the
  534. menu is closed when an option is selected, thanks to
  535. [Michael Elgar](https://github.com/melgar) for the original idea
  536. - changed; by default, the menu for multi-selects now closes when an option is
  537. selected
  538. - changed; `Async` component no longer always clears options when one is
  539. selected (although the menu is now closed by default). Use
  540. `closeOnSelect={false} onSelectResetsInput={false}` to leave the menu open.
  541. - fixed; `Async` component always called `onChange` even when it wasn't provided
  542. - fixed; input lag for the `Async` component when results are returned from
  543. cache
  544. - fixed; required was not being updated without an onChange handler
  545. - fixed; peer dependencies for `prop-types`, thanks
  546. [Michaël De Boey](https://github.com/MichaelDeBoey)
  547. - fixed; internal optimisations, thanks
  548. [Kieran Boyle](https://github.com/dysfunc)
  549. - added; `Value` component is now exported, thanks
  550. [Prof Gra](https://github.com/Grahack)
  551. - fixed; callback fired after `Async` component unmounts, thanks
  552. [Andrew Russell](https://github.com/DeadHeadRussell)
  553. - fixed; wrapping on Firefox in SCSS files, thanks
  554. [Michael Williamson](https://github.com/mwilliamson)
  555. ## v1.0.0-rc.8 / 2017-09-12
  556. - fixed; `onMenuScrollToBottom` does not work in chrome 58.0, thanks
  557. [Simon Hartcher](https://github.com/deevus)
  558. - fixed; missing es6 module build for `js:next` entrypoint
  559. - updated; `react-input-autosize@2.0.0` including several fixes for react-select
  560. (see
  561. [changes](https://github.com/JedWatson/react-input-autosize/blob/master/HISTORY.md))
  562. ## v1.0.0-rc.7 / 2017-09-11
  563. - fixed; issue with `lib` build preventing use in ES2015 environments
  564. ## v1.0.0-rc.6 / 2017-09-10
  565. - fixed; changing `required` prop from `true` to `false` now works as expected,
  566. thanks [George Karagkiaouris](https://github.com/karaggeorge)
  567. - added; new prop `onSelectResetsInput` controls whether the input value is
  568. cleared when options are selected, thanks
  569. [David Roeca](https://github.com/davidroeca) and
  570. [Alexander Nosov](https://github.com/nosovsh)
  571. - fixed; tabindex parent bug fix for Edge, thanks
  572. [George Payne](https://github.com/George-A-Payne)
  573. - fixed; update selectize link in README.md, thanks
  574. [kerumen](https://github.com/kerumen)
  575. - added; standard issue template, thanks [agirton](https://github.com/agirton)
  576. - added; new build process using rollup and webpack. Removed grunt. thanks
  577. [gwyneplaine](https://github.com/gwyneplaine)
  578. - fixed; updated contributor docs with the correct node version reference
  579. [gwyneplaine](https://github.com/gwyneplaine)
  580. - fixed; missing method binds in Option, thanks
  581. [agirton](https://github.com/agirton)
  582. - fixed; converted components to use es6 classes, thanks
  583. [jochenberger](https://github.com/jochenberger)
  584. - fixed; console.log example in usage docs, thanks
  585. [rohmanhm](https://github.com/rohmanhm)
  586. - fixed; hide create option after closing menu, thanks
  587. [andreme](https://github.com/andreme)
  588. - fixed; remove circular reference, thanks [agirton](https://github.com/agirton)
  589. - fixed; readme typo, thanks [ieldanr](https:/github.com/ieldanr)
  590. - fixed; add missing function binds in Option component, thanks
  591. [agirton](https://github.com/agirton) and
  592. [blacktemplar](https://github.com/blacktemplar)
  593. - fixed; re-added fix to
  594. [#1580](https://github.com/JedWatson/react-select/issues/1580), thanks
  595. [agirton](https://github.com/agirton)
  596. - fixed; avoid mutating user inputs when ignoring case/accents, thanks
  597. [not-an-aardvark](https://github.com/not-an-aardvark)
  598. - fixed; issues synchronising options props in `Async`, thanks
  599. [cbergmiller](https://github.com/cbergmiller)
  600. - fixed; backspace handling for non-multi select controls, thanks
  601. [Jeremy Liberman](https://github.com/MrLeebo)
  602. ## v1.0.0-rc.5 / 2017-05-25
  603. - fixed; Allow `falsey` values to be clearable, thanks
  604. [Simon Gaestel](https://github.com/sgaestel)
  605. - fixed; issue where Firefox would crash due to incorrect use of `aria-owns`
  606. attribute, thanks [Max Hubenthal](https://github.com/mhubenthal)
  607. - fixed; regression where options not using the value key couldn't be focused,
  608. thanks [Benjamin Piouffle](https://github.com/Betree)
  609. ## v1.0.0-rc.4 / 2017-05-14
  610. - fixed; no more warning when using React 15.5, thanks
  611. [Adam Girton](https://github.com/agirton)
  612. - fixed; issue comparing objects in `getFocusableOptionIndex`, thanks
  613. [rndm2](https://github.com/rndm2)
  614. - fixed; missing .focus() method in `Creatable`, thanks
  615. [Anton Alexandrenok](https://github.com/the-spyke)
  616. - added; support for `aria-describedby` attribute, thanks
  617. [Eric Lee](https://github.com/ericj17)
  618. - added; `.is-clearable` className when clearable is true, thanks
  619. [Dan Diaz](https://github.com/dan-diaz)
  620. ## v1.0.0-rc.3 / 2017-02-01
  621. - added; `arrowRenderer` prop, thanks [Brian Vaughn](https://github.com/bvaughn)
  622. - added; child-function support to `Async` and `Creatable` components so that
  623. they can compose each other (or future HOCs), thanks
  624. [Brian Vaughn](https://github.com/bvaughn)
  625. - added; `asyncCreatable` HOC that combines `Async` and `Creatable` so they can
  626. be used together, thanks [Brian Vaughn](https://github.com/bvaughn)
  627. - added; undocumented arguments for `menuRenderer`, thanks
  628. [Julian Krispel-Samsel](https://github.com/juliankrispel)
  629. - fixed; Do not focus and open menu when disabled, thanks
  630. [nhducit](https://github.com/nhducit)
  631. - fixed; Scrolling with arrow-keys is not working correctly, thanks
  632. [Damian Pieczynski](https://github.com/piecyk)
  633. - added; "select all text" functionality `Shift+Home|Del`, thanks
  634. [Damian Pieczynski](https://github.com/piecyk)
  635. - added; support for `boolean` values, thanks
  636. [Aaron Hardy](https://github.com/Aaronius)
  637. - fixed; Remove duplicated `promptTextCreator` field from readme, thanks
  638. [Jih-Chi Lee](https://github.com/jihchi)
  639. - fixed; Adding back ref that was removed in rc2, thanks
  640. [Martin Jujou](https://github.com/jooj123)
  641. - fixed; `Creatable` component doesn't allow input key down handling, thanks
  642. [Ivan Leonenko](https://github.com/IvanLeonenko)
  643. - added; Allow react nodes to be passed as loadingPlaceholder, thanks
  644. [Daniel Heath](https://github.com/DanielHeath)
  645. - fixed; IE8 compatibility issues, thanks
  646. [Kirill Mesnyankin](https://github.com/strayiker)
  647. - improved; Allow users to specify noResultsText, thanks
  648. [Daniel Heath](https://github.com/DanielHeath)
  649. - added; Only remove options if a loading placeholder is available, thanks
  650. [Daniel Heath](https://github.com/DanielHeath)
  651. - fixed; firefox display items in two rows due to reflow, thanks
  652. [Daniel Heath](https://github.com/DanielHeath)
  653. - fixed; `Creatable` readme typo, thanks [Ben](https://github.com/rockingskier)
  654. - fixed; explain way to implement `allowCreate` functionality with `Creatable`
  655. to readme, thanks [mayerwin](https://github.com/mayerwin)
  656. - added; delete key removes an item when there is no input, thanks
  657. [forum-is](https://github.com/forum-is)
  658. - added; `onNewOptionClick` handler for `Creatable`, thanks
  659. [Lee Siong Chan](https://github.com/leesiongchan)
  660. - fixed; `onInputChange` consistent for `Creatable`, thanks
  661. [Lee Siong Chan](https://github.com/leesiongchan)
  662. - fixed; `menuRenderer` is treated consistently between `Creatable` and
  663. `Select`, thanks [Brian Vaughn](https://github.com/bvaughn)
  664. - fixed; `asyncCreatable` options parsing will not parse undefined values into
  665. props, thanks [Romain Dardour](https://github.com/unity)
  666. - added; pass `inputProps` to `inputRenderer`, thanks
  667. [Alec Winograd](https://github.com/awinograd)
  668. - fixed; no exception when clearing an Async field that is not set to multi,
  669. thanks [Patrik Stutz](https://github.com/VanCoding)
  670. - added; allow rendering a custom clear component, thanks
  671. [Conor Hastings](https://github.com/conorhastings)
  672. - fixed; document `ignoreAccents`, thanks
  673. [Domenico Matteo](https://github.com/dmatteo)
  674. - fixed; arrowing up or down in `Select` with 0 options does not throw type
  675. error, thanks [Alex Howard](https://github.com/thezanke)
  676. - fixed; `Creatable` handles null children prop, thanks
  677. [Jack Coulter](https://github.com/jscinoz)
  678. - added; provide `isOpen` to arrowRenderer, thanks
  679. [Kuan](https://github.com/khankuan)
  680. - fixed; re-added the `focus()` method on `Select.Async`, thanks,
  681. [Maarten Claes](https://github.com/mcls)
  682. - fixed; focus the next available option after a selection, not the top option,
  683. thanks [Nicolas Raynaud](https://github.com/nraynaud)
  684. Note there has also been a breaking change to the props for the `Async`
  685. component: both `minimumInput` and `searchingText` have been removed. See #1226
  686. for more details. Apologies for doing this in an RC release, but we had to trade
  687. off between resolving some important bugs and breaking the API, and figured it
  688. was better to do this before declaring 1.0.0 stable.
  689. ## v1.0.0-rc.1 / 2016-09-04
  690. - fixed; reset value to `[]` when `multi=true`, thanks
  691. [Michael Williamson](https://github.com/mwilliamson)
  692. - added; pass index to `renderLabel` method, thanks
  693. [nhducit](https://github.com/nhducit)
  694. - fixed; uncontrolled to controlled component warning in React 15.3
  695. - fixed; props cleanup, thanks
  696. [Forbes Lindesay](https://github.com/ForbesLindesay)
  697. - fixed; issue where a value of the number `0` would be assumed to be no value,
  698. thanks [Hanwen Cheng](https://github.com/hanwencheng)
  699. - fixed; internal refs converted to callbacks instead of strings, thanks
  700. [Johnny Nguyen](https://github.com/gojohnnygo)
  701. - added; optional `instanceId` prop for server-side rendering, thanks
  702. [Jevin Anderson](https://github.com/JevinAnderson)
  703. - added; `onCloseResetsInput` prop, thanks
  704. [Frankie](https://github.com/frankievx)
  705. - added; `Creatable` component, replaces pre-1.0 `allowCreate` prop, thanks
  706. [Brian Vaughn](https://github.com/bvaughn)
  707. ## v1.0.0-beta14 / 2016-07-17
  708. - fixed; `react-input-autosize` has been udpated to `1.1.0`, which includes
  709. fixes for the new warnings that React 15.2 logs
  710. - fixed; "Unknown prop `inputClassName` on <div> tag" warning, thanks
  711. [Max Stoiber](https://github.com/mxstbr)
  712. - fixed; Removed unnecessary `onUnfocus`, thanks
  713. [Johnny Nguyen](https://github.com/gojohnnygo)
  714. - added; Support for react components in `searchPromptText`, thanks
  715. [Matt](https://github.com/hellaeon)
  716. - fixed; focus bug on iOS, thanks
  717. [Tony deCatanzaro](https://github.com/tonydecat)
  718. - fixed; Async bugs with Promises, thanks
  719. [Vladimir](https://github.com/VladimirPal) and
  720. [Ian Firkin](https://github.com/lobsteropteryx)
  721. - fixed; `searchingText` bug, thanks
  722. [Tony deCatanzaro](https://github.com/tonydecat)
  723. - improved; More antive-like input behaviour, thanks
  724. [Johnny Nguyen](https://github.com/gojohnnygo)
  725. - fixed; Added missing unit (px) to `minWidth` attribute, thanks
  726. [Ian Witherow](https://github.com/ianwitherow)
  727. - added; Support for assistive technologies, thanks
  728. [Dave Brotherstone](https://github.com/bruderstein)
  729. - fixed; React error if `onChange` callback causes a root component to unmount,
  730. thanks [Nathan Norton](https://github.com/Xesued)
  731. - fixed; Open menu is now closed if `disabled` becomes true, thanks
  732. [Jason Moon](https://github.com/jsnmoon)
  733. - fixed; Prevent `getFocusableOptionIndex` from returning a disabled option,
  734. thanks [Brian Powers](https://github.com/brianspowers)
  735. - added; Home, End, Page Up/Down support, thanks
  736. [Jason Kadrmas](https://github.com/blackjk3)
  737. - fixed; Don't render `backspaceToRemoveMessage` if `backspaceRemoves` is set to
  738. false, thanks [Ryan Zec](https://github.com/ryanzec)
  739. - fixed; Issue with an outline appearing on the auto sized input, thanks
  740. [Ryan Zec](https://github.com/ryanzec)
  741. - fixed; Events don't propagate when `esc` is pressed, thanks
  742. [Yoshihide Jimbo](https://github.com/jmblog)
  743. - fixed; Update `required` prop based on nextProps on update, thanks
  744. [Matt Shwery](https://github.com/mshwery)
  745. - fixed; On focus check whether input ref is a real input or an input component,
  746. thanks [Peter Brant](https://github.com/pbrant) and
  747. [Greg Poole](https://github.com/gpoole)
  748. Also a big thanks to [Brian Vaughn](https://github.com/bvaughn) for his help
  749. triaging issues for this release!
  750. ## v1.0.0-beta13 / 2016-05-30
  751. - added; `inputRenderer` prop, allows you to override the input component,
  752. thanks [Sean Burke](https://github.com/leftmostcat)
  753. - added; `openOnFocus` prop, causes the menu to always open when the select
  754. control is focused, thanks
  755. [HuysentruytRuben](https://github.com/HuysentruytRuben)
  756. - added; `react-virtualised-select` HOC example, thanks
  757. [Brian Vaughn](https://github.com/bvaughn)
  758. - added; `tabSelectsValue` prop can be set to false to prevent selection of
  759. focused option when tab is pressed, thanks
  760. [Byron Anderson](https://github.com/byronanderson)
  761. - added; ability to override `resetValue` when clearing the control, thanks
  762. [Alexander Luberg](https://github.com/LubergAlexander)
  763. - added; input can be updated with `onInputChange`, thanks
  764. [Brett DeWoody](https://github.com/brettdewoody)
  765. - added; Styles for .is-selected class, thanks
  766. [Danny Herran](https://github.com/dherran)
  767. - fixed; `noResultsText` prop type is now `stringOrNode` for Async component,
  768. thanks [Michael Groeneman](https://github.com/mgroeneman)
  769. - fixed; `onInputChange` is wrapped by Async component, thanks
  770. [Eric O'Connell](https://github.com/drd)
  771. - fixed; `scrollMenuIntoView` behaviour in IE10, thanks
  772. [Ivan Jager](https://github.com/aij)
  773. - fixed; isEqualNode replaced with strict equality check, thanks
  774. [Alexandre Balhier](https://github.com/abalhier)
  775. - fixed; issue with value object not being passed to `handleRequired`, thanks
  776. [Andrew Hite](https://github.com/andyhite)
  777. - fixed; the menu-outer container is no longer rendered when it does not contain
  778. anything, thanks [Kuan](https://github.com/khankuan)
  779. - improved; better support for IE8 in styles, thanks
  780. [Rockallite Wulf](https://github.com/rockallite)
  781. ## v1.0.0-beta12 / 2016-04-02
  782. - added; `menuRenderer` method and example for effeciently rendering thousands
  783. of options, thanks [Brian Vaughn](https://github.com/bvaughn)
  784. - added; `optionClassName` prop, thanks [Max Tyler](https://github.com/iam4x)
  785. ## v1.0.0-beta11 / 2016-03-09
  786. - updated dependencies to allow use with React 15.x
  787. - changed; multiple selected values are now submitted using multiple inputs,
  788. thanks [Trinh Hoang Nhu](https://github.com/james4388)
  789. - added; `joinValues` prop to revert the above change and submit multiple values
  790. in a single field with the delimiter
  791. ## v1.0.0-beta10 / 2016-02-23
  792. - fixed build issues with v1.0.0-beta9
  793. ## v1.0.0-beta9 / 2016-02-12
  794. - added; onBlurResetsInput prop, thanks
  795. [Sly Bridges](https://github.com/slybridges)
  796. - changed; Enter selects and retains focus, Tab selects and shifts focus, thanks
  797. [RDX](https://github.com/rdsubhas)
  798. - fixed; Hide noResultsText when value is falsy, thanks
  799. [Fernando Alex Helwanger](https://github.com/fhelwanger)
  800. - added; `required` prop, adds HTML5 required attribute, thanks
  801. [Domenico Matteo](https://github.com/dmatteo)
  802. - fixed; Touch drag behaviour, thanks
  803. [Pavel Tarnopolsky](https://github.com/Paveltarno)
  804. - added; `onOpen` and `onClose` event props, thanks
  805. [Jacob Page](https://github.com/DullReferenceException)
  806. - fixed; Pressing Enter on open Select should stop propagation, thanks
  807. [Jeremy Liberman](https://github.com/MrLeebo)
  808. - fixed; Missing handleMouseDownOnMenu, thanks
  809. [Jeremy Liberman](https://github.com/MrLeebo)
  810. - added; Ensures the selected option is immediately visible when the menu is
  811. open, thanks [Martin Jujou](https://github.com/jooj123)
  812. - added; `autoBlur` prop, blurs the input when a value is selected, thanks
  813. [Pavel Tarnopolsky](https://github.com/Paveltarno)
  814. - fixed; Several isFocused checks weren't working properly
  815. ## v1.0.0-beta8 / 2015-12-20
  816. - fixed; input focus bug when toggling `disabled` prop, thanks
  817. [Davide Curletti](https://github.com/dcurletti)
  818. - fixed; `focus()` is now exposed on the `Async` component, thanks
  819. [AugustinLF](https://github.com/AugustinLF)
  820. ## v1.0.0-beta7 / 2015-12-15
  821. - You can now use React elements for placeholders and the text props, thanks
  822. [kromit](https://github.com/kromit) and
  823. [Alyssa Biasi](https://github.com/alyssaBiasi)
  824. - Fixed a problem where the border doesn't show when the element is inside a
  825. table, thanks [Rodrigo Boratto](https://github.com/rwrz)
  826. - New prop `scrollMenuIntoView` scrolls the viewport to display the menu, thanks
  827. [Alexander Zaharakis](https://github.com/azaharakis)
  828. - New LESS / SCSS variable `select-option-bg` lets you control the menu option
  829. background color, thanks [Evan Goldenberg](https://github.com/Naveg)
  830. - Fixed an error in the blur handler on IE when the menu is not visible, thanks
  831. [Gaston Sanchez](https://github.com/gaastonsr)
  832. - Added support for a `clearableValue` option property in `multi` mode, thanks
  833. [Sly Bridges](https://github.com/slybridges)
  834. ## v1.0.0-beta6 / 2015-11-29
  835. - Test suite complete and passing, with a couple of minor fixes thanks to
  836. @bruderstein
  837. ## v1.0.0-beta5 / 2015-11-08
  838. - Fixes issues relating to serializing simple values into the hidden field
  839. ## v1.0.0-beta4 / 2015-11-08
  840. - New default styles that match [Elemental UI](http://elemental-ui.com) and look
  841. right at home in the new [KeystoneJS Admin UI](http://keystonejs.com)
  842. We're potentially going to ship some theme stylesheets in the future, shout out
  843. on GitHub if this interests you.
  844. ## v1.0.0-beta3 / 2015-11-08
  845. - The selected value populated in the hidden field has been fixed (was `"[object Object]"` before)
  846. - Added new `autofocus` prop
  847. - Fixed duplicate key error for options and values with duplicate `value`
  848. properties
  849. - SCSS variables now have `!default` so you can override them
  850. ## v1.0.0-beta2 / 2015-11-06
  851. Changed since beta 1:
  852. - Async options cache works again
  853. - New style props for custom styling the component without modifying css
  854. classes: `style` `wrapperStyle` `menuStyle` `menuContainerStyle`
  855. - The menu opens and closes correctly when `searchable={false}`, there is still
  856. some work to do on this use-case
  857. ## v1.0.0-beta1 / 2015-11-06
  858. This is a complete rewrite. Major changes include:
  859. - Everything is simpler (I'm nearly done and the source code is only 60% of the
  860. size of the last version)
  861. - No more timeouts or weird handlers, the restructuring has let me make
  862. everything more straight-forward
  863. - The options array is no longer preprocessed into state, just retrieved from
  864. props
  865. - The values array is now initialised in the Options array during render, and
  866. not stored in state, which along with the change to options makes the
  867. component more reliable and fixes issues with props not updating correctly
  868. - The component no longer stores its own value in state (ever) - it needs to be
  869. passed as a prop and handled with `onChange`.
  870. - Complex values are now enabled by default (so you're passed the option object,
  871. not its value); you can enable the legacy mode with a prop
  872. - The Value and Option components have been cleaned up as well for consistency
  873. - The hidden `<input>` field is now optional and the component is better suited
  874. to use in a rich React.js app than it was
  875. - You can disable options filtering to do the filtering externally with
  876. `onInputChange`
  877. - Accents on characters can now be ignored
  878. - The `asyncOptions` prop has been replaced by a new wrapper component:
  879. `Select.Async`
  880. Note that "Tag mode" (creating options on the fly) isn't reimplemented yet.
  881. A full guide to the breaking changes and new features will be written up soon.
  882. In the meantime please see the new examples.
  883. ## v0.9.1 / 2015-11-01
  884. - added; new Contributors example w/ async options loading and custom value /
  885. label keys
  886. - fixed; several issues with custom `valueKey` and `labelKey` props
  887. - fixed; autoload now loads options with no search input
  888. ## v0.9.0 / 2015-10-29
  889. - added; SCSS stylesheets!
  890. - improved; Options rendering should be more performant
  891. - breaking change; Custom `Option` components now need to pass their `option`
  892. prop to event handlers; see
  893. [this commit](https://github.com/JedWatson/react-select/commit/89af12a80a972794222b193a767f44234bbe9817)
  894. for an example of the required change.
  895. ## v0.8.4 / 2015-10-27
  896. - fixed; LESS math operations now work with --strict-math=on, thanks
  897. [Vincent Fretin](https://github.com/vincentfretin)
  898. ## v0.8.3 / 2015-10-27
  899. - fixed; IE issue where clicking the scrollbar would close the menu, thanks
  900. [Pete Nykänen](https://github.com/petetnt)
  901. ## v0.8.2 / 2015-10-22
  902. - added; Promise support for `loadAsyncOptions`, thanks
  903. [Domenico Matteo](https://github.com/dmatteo)
  904. ## v0.8.1 / 2015-10-20
  905. - fixed; `loadAsyncOptions` raises TypeError in setup, see #439 for details,
  906. thanks [Pancham Mehrunkar](https://github.com/pancham348)
  907. ## v0.8.0 / 2015-10-19
  908. This release contains significant DOM structure and CSS improvements by
  909. @jossmac, including:
  910. - no more `position: absolute` for inner controls
  911. - `display: table` is used for layout, which works in IE8 and above, and
  912. [all other modern browsers](http://caniuse.com/#feat=css-table)
  913. - less "magic numbers" used for layout, should fix various browser-specific
  914. alignment issues
  915. - clear "x" control now animates in
  916. - clearer `.Select--multi` className replaces `.Select.is-multi`
  917. - new height & theme variables
  918. - "dropdown" indicator chevron is no longer displayed for multi-select controls
  919. There are no functional changes, but if you've forked the LESS / CSS to create
  920. your own theme you'll want to pay close attention to PR #527 when upgrading to
  921. this version.
  922. ## v0.7.0 / 2015-10-10
  923. React Select is updated for React 0.14. If you're still using React 0.13, please
  924. continue to use `react-select@0.6.x`. There are no functional differences
  925. between v0.7.0 and v0.6.12.
  926. Additionally, our tests now require Node.js 4.x. If you are developing
  927. `react-select`, please make sure you are running the latest version of node.
  928. Thanks to @bruderstein, @dmatteo and @hull for their help getting these updates
  929. shipped!
  930. ## v0.6.12 / 2015-10-02
  931. - added; `labelKey` and `valueKey` props, so you can now use different keys in
  932. `option` objects for the label and value
  933. - fixed; additional `isMounted()` checks in timeouts
  934. - fixed; componentDidUpdate timeout is reset correctly, see #208 and #434,
  935. thanks [Petr Gladkikh](https://github.com/PetrGlad)
  936. - fixed; mousedown event on scrollbar in menu no longer hides it, thanks
  937. [Yishai Burt](https://github.com/burtyish)
  938. ## v0.6.11 / 2015-09-28
  939. - added; `isLoading` prop, allows indication of async options loading in
  940. situations where more control is required, thanks
  941. [Jon Gautsch](https://github.com/jgautsch)
  942. ## v0.6.10 / 2015-09-24
  943. - fixed; a build issue with the previous release that prevented the stylesheet
  944. being generated / included
  945. - fixed; a LESS syntax issue, thanks [Bob Cardenas](https://github.com/bcardi)
  946. ## v0.6.9 / 2015-09-19
  947. - added; `style` key for package.json, thanks
  948. [Stephen Wan](https://github.com/stephen)
  949. - added; `onInputChange` handler that returns the current input value, thanks
  950. [Tom Leslie](https://github.com/lomteslie)
  951. - fixed; simplifying handleKey function & preventDefault behaviour, thanks
  952. [davidpene](https://github.com/davidpene)
  953. - fixed; Display spinner while auto-loading initial data, thanks
  954. [Ben Jenkinson](https://github.com/BenJenkinson)
  955. - fixed; better support for touch events, thanks
  956. [Montlouis-Calixte Stéphane](https://github.com/bulby97)
  957. - fixed; prevent value splitting on non-multi-value select, thanks
  958. [Alan R. Soares](https://github.com/alanrsoares)
  959. ## v0.6.8 / 2015-09-16
  960. - fixed; broader range of allowed prereleases for React 0.14, including rc1
  961. - fixed; preventing backspace from navigating back in the browser history,
  962. thanks [davidpene](https://github.com/davidpene)
  963. ## v0.6.7 / 2015-08-28
  964. - fixed; missing styles for `.Select-search-prompt` and `.Select-searching`
  965. issues, thanks [Jaak Erisalu](https://github.com/jaakerisalu) and
  966. [davidpene](https://github.com/davidpene)
  967. ## v0.6.6 / 2015-08-26
  968. - fixed; issue in Chrome where clicking the scrollbar would close the menu,
  969. thanks [Vladimir Matsola](https://github.com/vomchik)
  970. ## v0.6.5 / 2015-08-24
  971. - fixed; completely ignores clicks on disabled items, unless the target of the
  972. click is a link, thanks [Ben Stahl](https://github.com/bhstahl)
  973. ## v0.6.4 / 2015-08-24
  974. This release includes a huge improvement to the examples / website thanks to
  975. @jossmac. Also:
  976. - added; support for React 0.14 beta3
  977. - fixed; disabled options after searching, thanks @bruderstein
  978. - added; support for "Searching..." text (w/ prop) while loading async results,
  979. thanks @bruderstein and @johnomalley
  980. - added; `className`, `style` and `title` keys are now supported in option
  981. properties, thanks @bruderstein
  982. ## v0.6.3 / 2015-08-18
  983. Otherwise known as "the real 0.6.2" this includes the updated build for the last
  984. version; sorry about that!
  985. ## v0.6.2 / 2015-08-13
  986. - changed; if the `searchable` prop is `false`, the menu is opened _or closed_
  987. on click, more like a standard Select input. thanks
  988. [MaaikeB](https://github.com/MaaikeB)
  989. ## v0.6.1 / 2015-08-09
  990. - added; Support for options with numeric values, thanks
  991. [Dave Brotherstone](https://github.com/bruderstein)
  992. - changed; Disabled options now appear in the search results , thanks
  993. [Dave Brotherstone](https://github.com/bruderstein)
  994. - fixed; asyncOptions are reloaded on componentWillReceiveProps when the value
  995. has changed, thanks [Francis Cote](https://github.com/drfeelgoud)
  996. - added; `cacheAsyncResults` prop (default `true`) now controls whether the
  997. internal cache is used for `asyncOptions`
  998. ## v0.6.0 / 2015-08-05
  999. - improved; option, value and single value have been split out into their own
  1000. components, and can be customised with props. see
  1001. [#328](https://github.com/JedWatson/react-select/pull/328) for more details.
  1002. - improved; Near-complete test coverage thanks to the awesome work of
  1003. [Dave Brotherstone](https://github.com/bruderstein)
  1004. - improved; Support all alpha/beta/rc's of React 0.14.0, thanks
  1005. [Sébastien Lorber](https://github.com/slorber)
  1006. - fixed; Close multi-select menu when tabbing away, thanks
  1007. [Ben Alpert](https://github.com/spicyj)
  1008. - fixed; Bug where Select shows the value instead of the label (reapplying fix)
  1009. - fixed; `valueRenderer` now works when `multi={false}`, thanks
  1010. [Chris Portela](https://github.com/0xCMP)
  1011. - added; New property `backspaceRemoves` (default `true`), allows the default
  1012. behaviour of removing values with backspace when `multi={true}`, thanks
  1013. [Leo Lehikoinen](https://github.com/lehikol2)
  1014. ## v0.5.6 / 2015-07-27
  1015. - fixed; Allow entering of commas when allowCreate is on but multi is off,
  1016. thanks [Angelo DiNardi](https://github.com/adinardi)
  1017. - fixed; Times (clear) character is now rendered from string unicode character
  1018. for consistent output, thanks [Nibbles](https://github.com/Siliconrob)
  1019. - fixed; allowCreate bug, thanks [goodzsq](https://github.com/goodzsq)
  1020. - fixed; changes to props.placeholder weren't being reflected correctly, thanks
  1021. [alesn](https://github.com/alesn)
  1022. - fixed; error when escape is pressedn where `clearValue` was not passed the
  1023. event, thanks [Mikhail Kotelnikov](https://github.com/mkotelnikov)
  1024. - added; More tests, thanks [Dave Brotherstone](https://github.com/bruderstein)
  1025. ## v0.5.5 / 2015-07-12
  1026. - fixed; replaced usage of `component.getDOMNode()` with
  1027. `React.findDOMNode(component)` for compatibility with React 0.14
  1028. ## v0.5.4 / 2015-07-06
  1029. - fixed; regression in 0.5.3 that broke componentWillMount, sorry everyone!
  1030. - added; `addLabelText` prop for customising the "add {label}?" text when in
  1031. tags mode, thanks [Fenn](https://github.com/Fenntasy)
  1032. ## v0.5.3 / 2015-07-05
  1033. - fixed; autoload issues, thanks [Maxime Tyler](https://github.com/iam4x)
  1034. - fixed; style incompatibilities with Foundation framework, thanks
  1035. [Timothy Kempf](https://github.com/Fauntleroy)
  1036. ## v0.5.2 / 2015-06-28
  1037. - fixed; bug where Select shows the value instead of the label, thanks
  1038. [Stephen Demjanenko](https://github.com/sdemjanenko)
  1039. - added; 'is-selected' classname is added to the selected option, thanks
  1040. [Alexey Volodkin](https://github.com/miraks)
  1041. - fixed; async options are now loaded with the initial value, thanks
  1042. [Pokai Chang](https://github.com/Neson)
  1043. - fixed; `react-input-autosize` now correctly escapes ampersands (&), not
  1044. actually a fix in react-select but worth noting here because it would have
  1045. been causing a problem in `react-select` as well.
  1046. ## v0.5.1 / 2015-06-21
  1047. - added; custom option and value rendering capability, thanks
  1048. [Brian Reavis](https://github.com/brianreavis)
  1049. - fixed; collapsing issue when single-select or empty multi-select fields are
  1050. disabled
  1051. - fixed; issue where an empty value would be left after clearing all values in a
  1052. multi-select field
  1053. ## v0.5.0 / 2015-06-20
  1054. - fixed; `esc` key incorrectly created empty options, thanks
  1055. [rgrzelak](https://github.com/rgrzelak)
  1056. - adeed; New feature to allow option creation ("tags mode"), enable with
  1057. `allowCreate` prop, thanks [Florent Vilmart](https://github.com/flovilmart)
  1058. and [Brian Reavis](https://github.com/brianreavis)
  1059. - fixed; IE8 compatibility fallback for `addEventListener/removeEventListener`,
  1060. which don't exist in IE8, thanks
  1061. [Stefan Billiet](https://github.com/StefanBilliet)
  1062. - fixed; Undefined values when using asyncOptions, thanks
  1063. [bannaN](https://github.com/bannaN)
  1064. - fixed; Prevent add the last focused value when the drop down menu is closed /
  1065. Pushing enter without dropdown open adds a value, thanks
  1066. [Giuseppe](https://github.com/giuse88)
  1067. - fixed; Callback context is undefined, thanks
  1068. [Giuseppe](https://github.com/giuse88)
  1069. - fixed; Issue with event being swallowed on Enter `keydown`, thanks
  1070. [Kevin Burke](https://github.com/kembuco)
  1071. - added; Support for case-insensitive filtering when `matchPos="start"`, thanks
  1072. [wesrage](https://github.com/wesrage)
  1073. - added; Support for customizable background color, thanks
  1074. [John Morales](https://github.com/JohnMorales)
  1075. - fixed; Updated ESLint and cleared up warnings, thanks
  1076. [Alexander Shemetovsky](https://github.com/AlexKVal)
  1077. - fixed; Close dropdown when clicking on select, thanks
  1078. [Nik Butenko](https://github.com/nkbt)
  1079. - added; Tests, and mocha test framework, thanks
  1080. [Craig Dallimore](https://github.com/craigdallimore)
  1081. - fixed; You can now start the example server and watch for changes with `npm start`
  1082. ## v0.4.9 / 2015-05-11
  1083. - fixed; focus was being grabbed by the select when `autoload` and
  1084. `asyncOptions` were set
  1085. - added; `focus` method on the component
  1086. - added; support for disabled options, thanks
  1087. [Pasha Palangpour](https://github.com/pashap)
  1088. - improved; more closures, less binds, for better performance, thanks
  1089. [Daniel Cousens](https://github.com/dcousens)
  1090. ## v0.4.8 / 2015-05-02
  1091. - fixed; restored `dist/default.css`
  1092. - fixed; standalone example works again
  1093. - fixed; clarified dependency documentation and added dependencies for Bower
  1094. - fixed; Scoping issues in `_bindCloseMenuIfClickedOutside`, thanks
  1095. [bannaN](https://github.com/bannaN)
  1096. - fixed; Doesnt try to set focus afterupdate if component is disabled, thanks
  1097. [bannaN](https://github.com/bannaN)
  1098. ## v0.4.7 / 2015-04-21
  1099. - improved; lodash is no longer a dependency, thanks
  1100. [Daniel Lo Nigro](https://github.com/Daniel15)
  1101. ## v0.4.6 / 2015-04-06
  1102. - updated; dependencies, build process and input-autosize component
  1103. ## v0.4.5 / 2015-03-28
  1104. - fixed; issue with long options overlapping arrow and clear icons, thanks
  1105. [Rohit Kalkur](https://github.com/rovolution)
  1106. ## v0.4.4 / 2015-03-26
  1107. - fixed; error handling click events when the menu is closed, thanks
  1108. [Ilya Petrov](https://github.com/muromec)
  1109. - fixed; issue where options will not be filtered in certain conditions, thanks
  1110. [G. Kay Lee](https://github.com/gsklee)
  1111. ## v0.4.3 / 2015-03-25
  1112. - added tests and updated dependencies
  1113. ## v0.4.2 / 2015-03-23
  1114. - added; ESLint and contributing guide
  1115. - fixed; incorrect `classnames` variable assignment in window scope
  1116. - fixed; all ESLint errors and warnings (except invalid JSX undefined/unused
  1117. vars due to ESLint bug)
  1118. - fixed; first option is now focused correctly, thanks
  1119. [Eivind Siqveland Larsen](https://github.com/esiqveland)
  1120. ## v0.4.1 / 2015-03-20
  1121. - fixed; IE11 issue: clicking on scrollbar within menu no longer closes menu,
  1122. thanks [Rohit Kalkur](https://github.com/rovolution)
  1123. ## v0.4.0 / 2015-03-12
  1124. - updated; compatible with React 0.13
  1125. ## v0.3.5 / 2015-03-09
  1126. - improved; less/no repaint on scroll for performance wins, thanks
  1127. [jsmunich](https://github.com/jsmunich)
  1128. - added; `onBlur` and `onFocus` event handlers, thanks
  1129. [Jonas Budelmann](https://github.com/cloudkite)
  1130. - added; support for `inputProps` prop, passed to the `<input>` component,
  1131. thanks [Yann Plantevin](https://github.com/YannPl)
  1132. - changed; now using
  1133. [react-component-gulp-tasks](https://github.com/JedWatson/react-component-gulp-tasks)
  1134. for build
  1135. - fixed; issue w/ remote callbacks overriding cached options, thanks
  1136. [Corey McMahon](https://github.com/coreymcmahon)
  1137. - fixed; if not `this.props.multi`, menu doesn't need handleMouseDown, thanks
  1138. [wenbing](https://github.com/wenbing)
  1139. ## v0.3.4 / 2015-02-23
  1140. - fixed; issues with the underscore/lodash dependency change, thanks
  1141. [Aaron Powell](https://github.com/aaronpowell)
  1142. ## v0.3.3 / 2015-02-22
  1143. - added; `disabled` prop, thanks [Danny Shaw](https://github.com/dannyshaw)
  1144. - added; `searchable` prop - set to `false` to disable the search box, thanks
  1145. [Julen Ruiz Aizpuru](https://github.com/julen)
  1146. - added; `onOptionLabelClick` prop - see
  1147. [#66](https://github.com/JedWatson/react-select/pull/66) for docs, thanks
  1148. [Dmitry Smirnov](https://github.com/dmitry-smirnov)
  1149. - fixed; `text-overflow: ellipsis;` typo, thanks
  1150. [Andru Vallance](https://github.com/andru)
  1151. ## v0.3.2 / 2015-01-30
  1152. - fixed; issue adding undefined values to multiselect, thanks
  1153. [Tejas Dinkar](https://github.com/gja)
  1154. ## v0.3.1 / 2015-01-20
  1155. - fixed; missing `var` statement
  1156. ## v0.3.0 / 2015-01-20
  1157. - added; node compatible build now available in `/lib`
  1158. ## v0.2.14 / 2015-01-07
  1159. - added; `searchPromptText` property that is displayed when `asyncOptions` is
  1160. set and there are (a) no options loaded, and (b) no input entered to search
  1161. on, thanks [Anton Fedchenko](https://github.com/kompot)
  1162. - added; `clearable` property (defaults to `true`) to control whether the
  1163. "clear" control is available, thanks
  1164. [Anton Fedchenko](https://github.com/kompot)
  1165. ## v0.2.13 / 2015-01-05
  1166. - fixed; height issues in Safari, thanks
  1167. [Joss Mackison](https://github.com/jossmac)
  1168. - added; Option to specify "Clear value" label as prop for i18n
  1169. ## v0.2.12 / 2015-01-04
  1170. - fixed; UI now responds to touch events, and works on mobile devices! thanks
  1171. [Fraser Xu](https://github.com/fraserxu)
  1172. ## v0.2.11 / 2015-01-04
  1173. - fixed; Options in the dropdown now scroll into view when they are focused,
  1174. thanks [Adam](https://github.com/fmovlex)
  1175. - improved; Example dist is now excluded from the npm package
  1176. ## v0.2.10 / 2015-01-01
  1177. - fixed; More specific mixin name to avoid conflicts (css)
  1178. - fixed; Example CSS now correctly rebuilds on changes in development
  1179. - fixed; Values are now expanded correctly when options change (see #28)
  1180. - added; Option to specify "No results found" label as prop for i18n, thanks
  1181. [Julen Ruiz Aizpuru](https://github.com/julen)
  1182. ## v0.2.9 / 2014-12-09
  1183. - added; `filterOption` and `filterOptions` props for more control over
  1184. filtering
  1185. ## v0.2.8 / 2014-12-08
  1186. - added; `matchPos` option to control whether to match the `start` or `any`
  1187. position in the string when filtering options (default: `any`)
  1188. - added; `matchProp` option to control whether to match the `value`, `label` or
  1189. `any` property of each option when filtering (default: `any`)
  1190. ## v0.2.7 / 2014-12-01
  1191. - fixed; screen-readers will now read "clear value" instead of "times" for the
  1192. clear button
  1193. - fixed; non-left-click mousedown events aren't blocked by the control
  1194. ## v0.2.6 / 2014-11-30
  1195. - improved; better comparison of changes to [options] in `willReceiveProps`
  1196. - fixed; now focuses the first option correctly when in multiselect mode
  1197. - fixed; fixed focused option behaviour on value change
  1198. - fixed; when filtering, there is always a focused option (#19)
  1199. - changed; using ^ in package.json to compare dependencies
  1200. ## v0.2.5 / 2014-11-20
  1201. - fixed; compatibility with case-sensitive file systems
  1202. ## v0.2.4 / 2014-11-20
  1203. - fixed; package.json pointed at the right file
  1204. ## v0.2.3 / 2014-11-17
  1205. - fixed; Updating state correctly when props change
  1206. - improved; Build tasks and docs
  1207. - added; Working standalone build
  1208. - added; Minified dist version
  1209. - added; Publised to Bower
  1210. ## v0.2.2 / 2014-11-15
  1211. - fixed; backspace event being incorrectly cancelled
  1212. ## v0.2.1 / 2014-11-15
  1213. - fixed; issue where backspace incorrectly clears the value (#14)
  1214. ## v0.2.0 / 2014-11-15
  1215. - changed; Major rewrite to improve focus handling and internal state management
  1216. - added; Support for `multi` prop, enable multiselect mode
  1217. ## v0.1.1 / 2014-11-03
  1218. - added; Support for `onChange` event
  1219. - added; `propTypes` are defined by the `Select` component now
  1220. - added; `className` property, sets the `className` on the outer `div` element
  1221. - fixed; Removed deprecated `React.DOM.x` calls
  1222. ## v0.1.0 / 2014-11-01
  1223. - updated; React to 0.12.0
  1224. ## v0.0.6 / 2014-10-14
  1225. - fixed; Error keeping value when using Async Options