react-selectize
Version:
A Stateless & Flexible Select component for React inspired by Selectize
132 lines (99 loc) • 6.02 kB
Markdown
# React Selectize
## v0.6.0 / 30th January 2016
* added `autofocus` prop, that will automatically toggle the dropdown on load
* removed the requirement for passing callback as the last argument to on-*-change props
* fixed many `focus` & `blur` related issues
* **Breaking Change** replaced `on-enter` prop with `on-keyboard-selection-failed`
## v0.5.3 / 27th January 2016
* introduced `name` & `serialize` props for form serialization
## v0.5.2 / 26th January 2016
* fixed option groups related bug
## v0.5.1 / 25th January 2016
* fixed tabbing (broken in v0.5.0, caused by refactoring related to blur method) (#25)
## v0.5.0 / 25th January 2016
* added `tether` prop
* added `blur` method
* close dropdown when nothing is selected on pressing the return key
* namespaced css classes (*Breaking Change*) :
> `.dropdown-transition` div is only used if any one (or both) of `transition-enter`, `transition-leave` props is / are specified,
before the `.dropdown` div was always being wrapped in `.dropdown-transition` even if animation was not required.
| Before | Now |
|--------|-----|
| .arrow | .react-selectize-arrow |
| .control | .react-selectize-control |
| .dropdown | .react-selectize-dropdown |
| .dropdown-transition | .react-selectize-dropdown-container |
| .placeholder | .react-selectize-placeholder |
| .reset | .react-selectize-reset |
## v0.4.1 / 22nd January 2016
* merged pull request (fixes an issue when unmounting with dropdown open) (#23), thanks @yuters
## v0.4.0 / 21st January 2016
* Added two new props `delimiters` & `valuesFromPaste` (#21)
## v0.3.11 / 20th January 2016
* fixed case sensitivity bug in MultiSelect. (#20)
## v0.3.10 / 19th January 2016
* fixed a bug where elements behind the dropdown were not clickable even though the dropdown was closed. (#18)
## v0.3.9 / 18th January 2016
* added `on-enter :: Item -> Void` prop, fired (with the `highlighted-option`) when the user hits the enter key (#19)
## v0.3.8 / 16th January 2016
* fixed a bug where passing `restore-on-backspace` prop wouldn't work in conjunction with `render-no-results-found` prop (#14)
## v0.3.7 / 2nd November 2015
* call `on-blur` only if the dropdown is open, thanks @alurim
## v0.3.6 / 30th October 2015
* updated package.json to include (React 0.14.0 and above) thanks @HankMcCoy
## v0.3.5 / 16th October 2015
* improved the default auto-size implementation
## v0.3.4 / 14th October 2015
* fixed a bug where the height of the ".dropdown-transition" element blocked the dom underneath (#6)
## v0.3.3 / 13th October 2015
* added missing dependency react-addons-css-transition-group to package.json
## v0.3.2 / 13th October 2015
* animated dropdown
## v0.3.1 / 10th October 2015
* added `defaultValue` prop for `SimpleSelect` & `defaultValues` prop for `MultiSelect`
## v0.3.0 / 9th October 2015
* 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 for `SimpleSelect`
* 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
## v0.2.6 / 8th October 2015
* fixed a bug where selecting an option did not update the highlighted-uid (multi select). Thanks @edgarzakaryan
## v0.2.5 / 28th September 2015
* 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
## v0.2.4 / 26th September 2015
* perf optimization, using result of props.uid method to compare items instead of deep equals
* added HighlightedText component to help with search highlighting
## v0.2.3 / 23rd September 2015
* fixed a bug where passing a single child element would not show up in the dropdown
* fixed other minor bugs identified by unit testing
## v0.2.2 / 21st September 2015
* 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
## v0.2.1 / 20th September 2015
* 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
## v0.2.0 / 19th September 2015
* 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` to `a -> (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` to `Item -> ReactElement`
## v0.1.6 / 19th September 2015
* introduced a new prop `autosize`, allows consumers to provide custom autosize logic for search input, the default implementation now supports nonmodern browsers
## v0.1.4 / 15th September 2015
* fixed option menu toggle on tap/click in mobile safari
## v0.1.3 / 12th September 2015
* 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
## v0.1.2 / 11th September 2015
* updated package.json added keywords & removed license property
## v0.1.1 / 11th September 2015
* added `highlightFirstSelectableOption` method to both the SimpleSelect & the MultiSelect components.
* changed filterOptions signature for SimpleSelect from `[Item] -> Item -> String -> [Item]` to `[Item]-> String -> [Item]`