diff --git a/src/components/select/select-head.vue b/src/components/select/select-head.vue index 42ae3d1e..10d6df89 100644 --- a/src/components/select/select-head.vue +++ b/src/components/select/select-head.vue @@ -108,7 +108,7 @@ type: Boolean }, // 4.0.0 - showNotFoundLabel: { + showCreateItem: { type: Boolean } }, @@ -225,7 +225,7 @@ this.$emit('on-input-focus'); }, onInputBlur () { - if (this.allowCreate && this.query !== '') return; + if (!this.showCreateItem) return; if (!this.values.length) this.query = ''; // #5155 this.$emit('on-input-blur'); }, diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 166e3a1d..6627bb4e 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -44,7 +44,7 @@ :max-tag-count="maxTagCount" :max-tag-placeholder="maxTagPlaceholder" :allow-create="allowCreate" - :show-not-found-label="showNotFoundLabel" + :show-create-item="showCreateItem" @on-query-change="onQueryChange" @on-input-focus="isFocused = true"