Releases: JedWatson/react-select
Releases · JedWatson/react-select
v2.4.1 / 2019-02-18
Bug fixes
- #3432 Fix bug with select menu's not working on mobile.
v2.4.0 / 2019-02-15
Bug fixes
- #3427 remove focusOption() invocation on ENTER press if the menu is not open.
- #3402 fix menu scroll being reset on focus of a select with an open menu in ie11. See #3342 for details. Thanks timothypage
- #3420 fixed select menu being opened on click, when openMenuOnClick is false. Thanks caleb and rscotten
- #3419 fixed bug with ScrollCaptor operating on an undefined scrollTarget. Thanks iulian-radu-at
- #3411 fix bug where Enter key press on select with a closed menu wouldn't propagate up. Resolves #2217.
- #3407 remove unnecessary aria-roles from menu and options. This is now all handled by our aria-live implementation. Resolves #3355. Thanks sarahbethfederman.
- #3393, fix aria live announcement text for removing a selected option. Thanks msharkeyiii.
- #3350 Updated to 0.91 of flow. Updated types to pass stricter type checking, in later versions of flow. Thanks DragonWW
Updates
v2.3.0 / 2019-01-18
Bug fixes
- #3315 add RAF call to Collapse component getRef() such that getBoundingClientRect() is invoked consistently.
- #3275 wrap String invocation around inputValue to avoid calling toLowerCase on invalid elements. thanks tavareshenrique
- #3357, fix loadOptions call in Async select to always pass in a string for the inputValue.
- #3346 Revert work done in CSP nonce PR #3260 to unblock react-select usage in an SSR setting. Users who need nonce support still, please pin your version of react-select at 2.2.0. Nonce support will be re-added in 3.0.0 along with an upgrade to emotion 10; which includes nonce support without having to provide a custom emotion instance.
Features
v2.2.0 / 2018-12-28
Bug Fixes
- #3296 Fix for tab interactions when in composition mode with an IME. Thanks yshr446 for the PR.
- #3302 Fix to breaking android and mobile safari touch bug #2755, by adding more conscientious checks to the onTouchStart and onTouchMove listeners. Thanks xakep139 for the PR.
- #3303 Input and GroupHeading components now get passed the selectProps prop, thanks maxmarchuk for the PR.
- #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 in the docs for a more detailed explanation.
- #3299 fix to assistive text on menu open.
Features
v2.1.1
Bug fixes
- [#3132] Strip theme props from default Input and GroupHeading components, as they were polluting the DOM.
- [#3131] Add support for the 'Delete' key in the internal onKeyDown method. Same functionality as 'Backspace'.
- [#3100] Update flow-types and normalised default prop declarations in indicators. Thanks iseredov
Updates
- [#3083] Added sideEffects property to package.json to support tree-shaking in webpack 4.x. Thanks SimenB.
- [#3078] Update jest dependency to 23.6.0. Thanks papandreou
- [#3065] Update babel-plugin-emotion to 9.2.10. Thanks mtzhang
- [#3108] Update docs to include instructions for replicating the simple-value use case within react-select v2. Thanks elboletaire
v2.1.0
- [#2839] Added support for theming via theme prop. Thanks akx
- [#2874] Fixed flow-types of MultiValue components. Thanks mike1808
- [#2903] Fix missing form input when there isn't a selected value. Thanks alvinsj
- [#2934] Reduced theme colors to a sane value set to make the exported theme more easy to consume and configure. Thanks jossmac
- [#2876] Added overflow hidden to valueContainer to stop overflowing text in the control. Thanks mike1808
- [#2975] Separated menu placement logic from menu primitive. Thanks jossmac.
v2.0.0
v2.0.0 / 2018-07-23
- async select now accepts a filterOptions function as a prop #2822
- [BREAKING] react-select now exports react-select.esm.js from dist instead of react-select.es.js #2641
- [BREAKING] innerRef assignments in custom components must now be made from the root of the prop object, as opposed to reaching into innerProps. This is part of the work to normalize the behaviour circa custom components. #2824
- className and classNamePrefix deprecation warning and backward compatibility removed. className now only affects the select container, classNamePrefix prefixes all internal components. #2820
- Added
closeMenuOnScroll
prop, which can either be aboolean
or afunction
, if set totrue
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, thanks Vynlar for this. - Added fix to support IME inputs. #2767, thanks shamabe
- Removed primitives, and normalise multi-value components to be in line with existing component customisation patterns. #2821
- Normalised isOptionDisabled to be inline with its sibling prop isOptionSelected. #2821 Thanks SimeonC
- #2814 Added memoization to custom components within Select.js as well as in the exported makeAnimated factory method. Thanks to Alex Reardon's memoize-one
- #2652, Async Select now re-evaluates defaultOptions on componentWillReceiveProps. Thanks jesstelford
v2.0.0-beta.7
Features
- 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, andaria-labelledby
andaria-label
props are still available and retain their functionality. See #2581. - Added makeAnimated function export, that takes passed in components and wraps them in higher order components that expose animated functionality. #2724
- Added functionality to not render the menu if
noOptionsMessage
orloadingMessage
are set to null. #2754
Fixes
- Fixed bug with MultiValueRemove interaction not working in mobile #2762, thanks chuckbergeron.
- Fixed bug with mobile menu being blocked when
menuShouldBlockScroll
is true.
#2756 - Fixed #2701, use of un-polyfilled array.includes() in Select.js, this has now been subbed out for a IE compatible implementation.
- #2723, fixed emotion compilation bug blocking loadingDot rendering.
- #2749 fixed typo in docs. thanks JuhQ
Updates
- 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. #2753
- Updates to flow types, thanks mike1808, himerus,
- #2733, fixed classname bug to do with prefixing classes with modifiers.
[teamable-software](https://github.com/teamable-software - Bumped internal flow-bin dependency to 0.72.0, #2646 thanks lunij