Skip to content

Commit

Permalink
Fix #230
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Dulisz committed Jul 1, 2017
1 parent 97f60ed commit 32c558b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/multiselectMixin.js
Expand Up @@ -496,7 +496,10 @@ export default {
/* istanbul ignore else */
if (this.disabled) return
/* istanbul ignore else */
if (!this.allowEmpty && this.internalValue.length <= 1) return
if (!this.allowEmpty && this.internalValue.length <= 1) {
this.deactivate()
return
}

const index = typeof option === 'object'
? this.valueKeys.indexOf(option[this.trackBy])
Expand Down

0 comments on commit 32c558b

Please sign in to comment.