react-functional-select v2.8.0 Release Notes

Release Date: 2020-09-26 // over 3 years ago
  • ๐Ÿ”„ Change Log

    ๐Ÿฑ ๐Ÿš€ Feature

    • ๐Ÿ†• New property : required | boolean | undefined | default: undefined. Wether the control is required or not - this attribute is applied to the child input element and if true will apply any optionally specified CSS found in themeConfig.input.cssRequired.
    • ๐Ÿ†• New property : itemKeySelector | ReactText | undefined | default: undefined. If defined, will use the property in your original options as each option's key, rather than the parsed stateful value menuOptions index (this needs to be a unique property - so properties such as id or value). This relates to the itemKey property in dependency react-window - more info here

    ๐Ÿ›  ๐Ÿž Bugfix

    • ๐Ÿ›  Fix rendering/display issue in AriaLiveRegion.tsx component - change the child <p> elements to <span> elements under the <A11yText> (styled.span) element. Can't nest <p> elements in <span> elements.

    ๐Ÿ›  Misc

    • ๐ŸŽ Performance optimization : reduce re-render events by writing stateful value menuOpen to a ref in order to reference in memoized functions to determine whether or not to perform state updates. This is particularly highlighted when a user is triggering change events on the input's value while searching - every change would always set menuOpen to true.
    • โšก๏ธ Updates to rollup.config.js - specifically the babel plugin. Switch all loose flags from true to false and make bundled output more es6-ish.