Skip to content

v2.0.0

Compare
Choose a tag to compare
@gwyneplaine gwyneplaine released this 21 Sep 06:01
· 1334 commits to master since this release

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