From 7a578b3a9f8eac20b34419d5dd2a2c7cb6a8d2bb Mon Sep 17 00:00:00 2001 From: Christopher-Masselli <43415041+Christopher-Masselli@users.noreply.github.com> Date: Wed, 10 Nov 2021 12:57:19 -0500 Subject: [PATCH] base showNewOption on value instead of label (#65) Co-authored-by: Chris Masselli --- packages/select/src/select.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/select/src/select.vue b/packages/select/src/select.vue index 586370dbe9..4df6afeb9d 100644 --- a/packages/select/src/select.vue +++ b/packages/select/src/select.vue @@ -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; },