Skip to content

Releases: JedWatson/react-select

v2.1.1

24 Oct 04:00
Compare
Choose a tag to compare

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

17 Oct 02:44
Compare
Choose a tag to compare
  • [#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

21 Sep 06:01
Compare
Choose a tag to compare

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 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, 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

05 Jul 01:00
Compare
Choose a tag to compare

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, and aria-labelledby and aria-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 or loadingMessage 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