Skip to content

Commit

Permalink
fix(MdSelect): infinite loop error, when no v-model provided (#2035)
Browse files Browse the repository at this point in the history
  • Loading branch information
hastom authored and marcosmoura committed May 11, 2019
1 parent 05b4744 commit 1d6eced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MdField/MdSelect/MdSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@
let isArray = Array.isArray(this.localValue)
if (this.multiple && !isArray) {
this.localValue = this.setLocalValueIfMultiple()
this.setLocalValueIfMultiple()
} else if (!this.multiple && isArray) {
this.localValue = this.setLocalValueIfNotMultiple()
this.setLocalValueIfNotMultiple()
}
},
emitSelected (value) {
Expand Down

0 comments on commit 1d6eced

Please sign in to comment.