Skip to content

Commit 898e8e5

Browse files
committed
Merge branch 'release/0.3.11' into develop
2 parents 76d108b + f2cfb83 commit 898e8e5

File tree

5 files changed

+74
-69
lines changed

5 files changed

+74
-69
lines changed

CHANGELOG.md

+63-60
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,37 @@
11
# React Selectize
22

3-
## v0.1.1 / 11th September 2015
4-
* added `highlightFirstSelectableOption` method to both the SimpleSelect & the MultiSelect components.
5-
* changed filterOptions signature for SimpleSelect from `[Item] -> Item -> String -> [Item]` to `[Item]-> String -> [Item]`
6-
7-
## v0.1.2 / 11th September 2015
8-
* updated package.json added keywords & removed license property
3+
## v0.3.11 / 20th January 2016
4+
* fixed case sensitivity bug in MultiSelect. (#20)
95

10-
## v0.1.3 / 12th September 2015
11-
* fixed a bug where invoking the callback onValueChange synchronously would not close the options menu
12-
* fixed a bug where the SimpleSelect onValueChange callback was invoked even when the user selected the same item
13-
* minor tweaks & improvements to the default stylesheet
6+
## v0.3.10 / 19th January 2016
7+
* fixed a bug where elements behind the dropdown were not clickable even though the dropdown was closed. (#18)
148

15-
## v0.1.4 / 15th September 2015
16-
* fixed option menu toggle on tap/click in mobile safari
9+
## v0.3.9 / 18th January 2016
10+
* added `on-enter :: Item -> Void` prop, fired (with the `highlighted-option`) when the user hits the enter key (#19)
1711

18-
## v0.1.6 / 19th September 2015
19-
* introduced a new prop `autosize`, allows consumers to provide custom autosize logic for search input, the default implementation now supports nonmodern browsers
12+
## v0.3.8 / 16th January 2016
13+
* fixed a bug where passing `restore-on-backspace` prop wouldn't work in conjunction with `render-no-results-found` prop (#14)
2014

21-
## v0.2.0 / 19th September 2015
22-
* drop in replacement for React.DOM.Select, accepts options as children
23-
* added a new prop `dropdownDirection`, setting it to -1 forces the options menu to open upwards
24-
* option group support (as rows and columns)
25-
* 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
26-
* improved performance by implementing shouldComponentUpdate lifecycle method for *Wrapper classes, added `uid :: (Eq e) => Item -> e` prop
27-
* changed the signature of renderOption & renderValue props from `Int -> Item -> ReactElement` to `Item -> ReactElement`
15+
## v0.3.7 / 2nd November 2015
16+
* call `on-blur` only if the dropdown is open, thanks @alurim
2817

29-
## v0.2.1 / 20th September 2015
30-
* fixed React Warnings caused by missing key property for ValueWrapper components
31-
* allowing for wide range of react versions including 0.14.x-rc*
32-
* uid property for MultiSelect components
18+
## v0.3.6 / 30th October 2015
19+
* updated package.json to include (React 0.14.0 and above) thanks @HankMcCoy
3320

34-
## v0.2.2 / 21st September 2015
35-
* fixed a bug where the input element would not autosize on entering search text
36-
* avoid firing onValueChange with undefined value when the user enters new search text
21+
## v0.3.5 / 16th October 2015
22+
* improved the default auto-size implementation
3723

38-
## v0.2.3 / 23rd September 2015
39-
* fixed a bug where passing a single child element would not show up in the dropdown
40-
* fixed other minor bugs identified by unit testing
24+
## v0.3.4 / 14th October 2015
25+
* fixed a bug where the height of the ".dropdown-transition" element blocked the dom underneath (#6)
4126

42-
## v0.2.4 / 26th September 2015
43-
* perf optimization, using result of props.uid method to compare items instead of deep equals
44-
* added HighlightedText component to help with search highlighting
27+
## v0.3.3 / 13th October 2015
28+
* added missing dependency react-addons-css-transition-group to package.json
4529

46-
## v0.2.5 / 28th September 2015
47-
* create index.css to fix style duplication when importing both SimpleSelect.css & MultiSelect.css
48-
* clicking on the arrow button toggles the dropdown
49-
* minor css tweaks
30+
## v0.3.2 / 13th October 2015
31+
* animated dropdown
5032

51-
## v0.2.6 / 8th October 2015
52-
* fixed a bug where selecting an option did not update the highlighted-uid (multi select). Thanks @edgarzakaryan
33+
## v0.3.1 / 10th October 2015
34+
* added `defaultValue` prop for `SimpleSelect` & `defaultValues` prop for `MultiSelect`
5335

5436
## v0.3.0 / 9th October 2015
5537
* upgraded to react 0.14.0
@@ -59,32 +41,53 @@
5941
* wrap around when navigating options with arrow keys
6042
* close multi-select when there are no more options left to select
6143

62-
## v0.3.1 / 10th October 2015
63-
* added `defaultValue` prop for `SimpleSelect` & `defaultValues` prop for `MultiSelect`
44+
## v0.2.6 / 8th October 2015
45+
* fixed a bug where selecting an option did not update the highlighted-uid (multi select). Thanks @edgarzakaryan
6446

65-
## v0.3.2 / 13th October 2015
66-
* animated dropdown
47+
## v0.2.5 / 28th September 2015
48+
* create index.css to fix style duplication when importing both SimpleSelect.css & MultiSelect.css
49+
* clicking on the arrow button toggles the dropdown
50+
* minor css tweaks
6751

68-
## v0.3.3 / 13th October 2015
69-
* added missing dependency react-addons-css-transition-group to package.json
52+
## v0.2.4 / 26th September 2015
53+
* perf optimization, using result of props.uid method to compare items instead of deep equals
54+
* added HighlightedText component to help with search highlighting
7055

71-
## v0.3.4 / 14th October 2015
72-
* fixed a bug where the height of the ".dropdown-transition" element blocked the dom underneath (#6)
56+
## v0.2.3 / 23rd September 2015
57+
* fixed a bug where passing a single child element would not show up in the dropdown
58+
* fixed other minor bugs identified by unit testing
7359

74-
## v0.3.5 / 16th October 2015
75-
* improved the default auto-size implementation
60+
## v0.2.2 / 21st September 2015
61+
* fixed a bug where the input element would not autosize on entering search text
62+
* avoid firing onValueChange with undefined value when the user enters new search text
7663

77-
## v0.3.6 / 30th October 2015
78-
* updated package.json to include (React 0.14.0 and above) thanks @HankMcCoy
64+
## v0.2.1 / 20th September 2015
65+
* fixed React Warnings caused by missing key property for ValueWrapper components
66+
* allowing for wide range of react versions including 0.14.x-rc*
67+
* uid property for MultiSelect components
7968

80-
## v0.3.7 / 2nd November 2015
81-
* call `on-blur` only if the dropdown is open, thanks @alurim
69+
## v0.2.0 / 19th September 2015
70+
* drop in replacement for React.DOM.Select, accepts options as children
71+
* added a new prop `dropdownDirection`, setting it to -1 forces the options menu to open upwards
72+
* option group support (as rows and columns)
73+
* 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
74+
* improved performance by implementing shouldComponentUpdate lifecycle method for *Wrapper classes, added `uid :: (Eq e) => Item -> e` prop
75+
* changed the signature of renderOption & renderValue props from `Int -> Item -> ReactElement` to `Item -> ReactElement`
8276

83-
## v0.3.8 / 16th January 2016
84-
* fixed a bug where passing `restore-on-backspace` prop wouldn't work in conjunction with `render-no-results-found` prop (#14)
77+
## v0.1.6 / 19th September 2015
78+
* introduced a new prop `autosize`, allows consumers to provide custom autosize logic for search input, the default implementation now supports nonmodern browsers
8579

86-
## v0.3.9 / 18th January 2016
87-
* added `on-enter :: Item -> Void` prop, fired (with the `highlighted-option`) when the user hits the enter key (#19)
80+
## v0.1.4 / 15th September 2015
81+
* fixed option menu toggle on tap/click in mobile safari
8882

89-
## v0.3.10 / 19th January 2016
90-
* fixed a bug where elements behind the dropdown were not clickable even though the dropdown was closed. (#18)
83+
## v0.1.3 / 12th September 2015
84+
* fixed a bug where invoking the callback onValueChange synchronously would not close the options menu
85+
* fixed a bug where the SimpleSelect onValueChange callback was invoked even when the user selected the same item
86+
* minor tweaks & improvements to the default stylesheet
87+
88+
## v0.1.2 / 11th September 2015
89+
* updated package.json added keywords & removed license property
90+
91+
## v0.1.1 / 11th September 2015
92+
* added `highlightFirstSelectableOption` method to both the SimpleSelect & the MultiSelect components.
93+
* changed filterOptions signature for SimpleSelect from `[Item] -> Item -> String -> [Item]` to `[Item]-> String -> [Item]`

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ styles & features inspired by [React Select](http://jedwatson.github.io/react-se
1313

1414
[![](http://i.imgsafe.co/rQmogzn.gif)](http://furqanZafar.github.io/react-selectize/)
1515

16-
- [Changelog](CHANGELOG.md) (last updated on 18th January 2016)
16+
- [Changelog](CHANGELOG.md) (last updated on 20th January 2016)
1717
- [API Reference](API.md)
1818

1919
# Motivation

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-selectize",
3-
"version": "0.3.10",
3+
"version": "0.3.11",
44
"description": "A Stateless & Flexible Select component for React inspired by Selectize",
55
"main": "src/index.js",
66
"scripts": {

public/examples/multi/Tags.jsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ Form = React.createClass({
1919

2020
// createFromSearch :: [Item] -> [Item] -> String -> Item?
2121
createFromSearch = {function(options, values, search){
22-
if (search.length == 0 ||
23-
values.map(function(value){ return value.label; }).indexOf(search) != -1)
22+
labels = values.map(function(value){
23+
return value.label;
24+
})
25+
if (search.trim().length == 0 || labels.indexOf(search.trim()) != -1)
2426
return null;
25-
return {label: search, value: search};
27+
return {label: search.trim(), value: search.trim()};
2628
}}
2729

2830
// renderNoResultsFound :: [Item] -> String -> ReactElement
2931
renderNoResultsFound = {function(values, search) {
3032
return <div className = "no-results-found">
3133
{(function(){
32-
if (search.length == 0)
34+
if (search.trim().length == 0)
3335
return "Type a few characters to create a tag";
3436
else if (values.map(function(value){ return value.label; }).indexOf(search) != -1)
3537
return "Tag already exists";

public/examples/multi/Tags.ls

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Form = React.create-class do
1414

1515
# create-from-search :: [Item] -> [Item] -> String -> Item?
1616
create-from-search: (options, values, search) ->
17-
return null if search.length == 0 or search in map (.label), values
18-
label: search, value: search
17+
return null if search.trim!.length == 0 or search.trim! in map (.label), values
18+
label: search.trim!, value: search.trim!
1919

2020
# render-no-results-found :: [Item] -> String -> ReactElement
2121
render-no-results-found: (values, search) ~>
2222
div class-name: \no-results-found,
23-
if search.length == 0
23+
if search.trim!.length == 0
2424
"Type a few characters to create a tag"
2525
else if (search in map (.label), values)
2626
"Tag already exists"

0 commit comments

Comments
 (0)