Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,914 changes: 1,922 additions & 1,992 deletions dist/@foxdcg/react-select.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/@foxdcg/react-select.min.js

Large diffs are not rendered by default.

3,800 changes: 2,977 additions & 823 deletions examples/dist/app.js

Large diffs are not rendered by default.

3,914 changes: 1,922 additions & 1,992 deletions examples/dist/bundle.js

Large diffs are not rendered by default.

27,384 changes: 13,970 additions & 13,414 deletions examples/dist/common.js

Large diffs are not rendered by default.

3,914 changes: 1,922 additions & 1,992 deletions examples/dist/standalone.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ var Async = (function (_Component) {
}
},
onChange: function onChange(newValues) {
if (_this3.props.value && newValues.length > _this3.props.value.length) {
if (_this3.props.value && (!newValues || newValues.length > _this3.props.value.length)) {
_this3.clearOptions();
}
_this3.props.onChange(newValues);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@foxdcg/react-select",
"version": "1.0.3",
"version": "1.0.4",
"description": "A Select control built with and for ReactJS",
"main": "lib/Select.js",
"style": "dist/react-select.min.css",
Expand Down
2 changes: 1 addition & 1 deletion src/Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default class Async extends Component {
}
},
onChange: (newValues) => {
if (this.props.value && (newValues.length > this.props.value.length)) {
if (this.props.value && (!newValues || (newValues.length > this.props.value.length))) {
this.clearOptions();
}
this.props.onChange(newValues);
Expand Down