Skip to content

Commit

Permalink
Bump version to beta-15
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Dulisz committed Mar 8, 2017
1 parent 63879c4 commit 4cd44b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions lib/multiselectMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,15 @@ exports.default = {
this.$emit('search-change', this.search, this.id);
},
'value': function value(_value) {
this.internalValue = (0, _utils2.default)(Array.isArray(_value) ? _value : [_value]);
this.internalValue = this.getInternalValue(_value);
}
},
methods: {
getValue: function getValue() {
return this.multiple ? (0, _utils2.default)(this.internalValue) : (0, _utils2.default)(this.internalValue[0]);
return this.multiple ? (0, _utils2.default)(this.internalValue) : this.internalValue.length === 0 ? null : (0, _utils2.default)(this.internalValue[0]);
},
getInternalValue: function getInternalValue(value) {
return value === null || value === undefined ? [] : this.multiple ? (0, _utils2.default)(value) : (0, _utils2.default)([value]);
},
filterAndFlat: function filterAndFlat(options) {
return flow(filterGroups(this.search, this.label, this.groupValues, this.groupLabel), flattenOptions(this.groupValues, this.groupLabel))(options);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-multiselect",
"version": "2.0.0-beta.14",
"version": "2.0.0-beta.15",
"description": "Multiselect component for vue.js",
"author": "Damian Dulisz <[email protected]>",
"private": false,
Expand All @@ -25,7 +25,7 @@
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --watch",
"test": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"lint": "eslint --ext .js,.vue src test/unit/specs",
"finish": "npm run lint && npm test && npm run build"
"finish": "npm run lint && npm test && npm run bundle"
},
"devDependencies": {
"autoprefixer": "^6.7.2",
Expand Down

0 comments on commit 4cd44b2

Please sign in to comment.