Skip to content

Commit

Permalink
base showNewOption on value instead of label (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Masselli <chris@cognitoforms.com>
  • Loading branch information
Christopher-Masselli and Chris Masselli authored Nov 10, 2021
1 parent f4fa4c2 commit 7a578b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
showNewOption() {
let hasExistingOption = this.options.filter(option => !option.created)
.some(option => option.currentLabel === this.query);
.some(option => option.currentValue === this.query);
return this.filterable && this.allowCreate && this.query !== '' && !hasExistingOption;
},
Expand Down

0 comments on commit 7a578b3

Please sign in to comment.