Skip to content

Commit

Permalink
style(MdChips): always return a value
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmoura authored Dec 26, 2017
1 parent ebf14c6 commit 08286e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/MdChips/MdChips.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,13 @@
checkDuplicated () {
if (!this.value.includes(this.formattedInputValue)) {
this.duplicatedChip = null
return
return false
}
if (!this.mdCheckDuplicated) {
return false
}
if (!this.mdCheckDuplicated) return
this.duplicatedChip = this.formattedInputValue
}
},
Expand Down

0 comments on commit 08286e1

Please sign in to comment.