Skip to content
Merged
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
12,347 changes: 6,210 additions & 6,137 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.

11,938 changes: 0 additions & 11,938 deletions examples/dist/app.js

This file was deleted.

12,345 changes: 6,209 additions & 6,136 deletions examples/dist/bundle.js

Large diffs are not rendered by default.

33,995 changes: 16,868 additions & 17,127 deletions examples/dist/common.js

Large diffs are not rendered by default.

12,347 changes: 6,210 additions & 6,137 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.multi && _this3.props.value && 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.multi && this.props.value && (newValues.length > this.props.value.length)) {
this.clearOptions();
}
this.props.onChange(newValues);
Expand Down