- added
highlightFirstSelectableOption
method to both the SimpleSelect & the MultiSelect components. - changed filterOptions signature for SimpleSelect from
[Item] -> Item -> String -> [Item]
to[Item]-> String -> [Item]
- updated package.json added keywords & removed license property
- fixed a bug where invoking the callback onValueChange synchronously would not close the options menu
- fixed a bug where the SimpleSelect onValueChange callback was invoked even when the user selected the same item
- minor tweaks & improvements to the default stylesheet
- fixed option menu toggle on tap/click in mobile safari
- introduced a new prop
autosize
, allows consumers to provide custom autosize logic for search input, the default implementation now supports nonmodern browsers
- drop in replacement for React.DOM.Select, accepts options as children
- added a new prop
dropdownDirection
, setting it to -1 forces the options menu to open upwards - option group support (as rows and columns)
- updated the signature of refs.selectInstance.focus from
a -> Void
toa -> (a -> Void) -> Void
, i.e. the focus function now accepts a callback as the first parameter which is fired when the options menu is visible - improved performance by implementing shouldComponentUpdate lifecycle method for *Wrapper classes, added
uid :: (Eq e) => Item -> e
prop - changed the signature of renderOption & renderValue props from
Int -> Item -> ReactElement
toItem -> ReactElement
- fixed React Warnings caused by missing key property for ValueWrapper components
- allowing for wide range of react versions including 0.14.x-rc*
- uid property for MultiSelect components
- fixed a bug where the input element would not autosize on entering search text
- avoid firing onValueChange with undefined value when the user enters new search text
- fixed a bug where passing a single child element would not show up in the dropdown
- fixed other minor bugs identified by unit testing
- perf optimization, using result of props.uid method to compare items instead of deep equals
- added HighlightedText component to help with search highlighting
- create index.css to fix style duplication when importing both SimpleSelect.css & MultiSelect.css
- clicking on the arrow button toggles the dropdown
- minor css tweaks
- fixed a bug where selecting an option did not update the highlighted-uid (multi select). Thanks @edgarzakaryan
- upgraded to react 0.14.0
- you can now return an object from the uid prop, made uid prop optional (even for custom option object)
- added
editable
prop forSimpleSelect
- fixed a bug where changing the selectable property would not rerender the option
- wrap around when navigating options with arrow keys
- close multi-select when there are no more options left to select
- added
defaultValue
prop forSimpleSelect
&defaultValues
prop forMultiSelect
- animated dropdown
- added missing dependency react-addons-css-transition-group to package.json
- fixed a bug where the height of the ".dropdown-transition" element blocked the dom underneath (#6)
- improved the default auto-size implementation
- updated package.json to include (React 0.14.0 and above) thanks @HankMcCoy
- call
on-blur
only if the dropdown is open, thanks @alurim