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 childinput
element and iftrue
will apply any optionally specified CSS found inthemeConfig.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 valuemenuOptions
index (this needs to be a unique property - so properties such asid
orvalue
). This relates to theitemKey
property in dependencyreact-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 aref
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 setmenuOpen
totrue
. - โก๏ธ Updates to
rollup.config.js
- specifically the babel plugin. Switch allloose
flags fromtrue
tofalse
and make bundled output more es6-ish.
- ๐ New property :