Update select.vue

This commit is contained in:
梁灏 2019-09-09 14:57:54 +08:00
parent 74fb7cb03d
commit bb27d72574

View file

@ -721,7 +721,7 @@
},
// 4.0.0 create new item
handleCreateItem () {
if (this.allowCreate && this.query !== '') {
if (this.allowCreate && this.query !== '' && this.showCreateItem) {
const query = this.query;
this.$emit('on-create', query);
this.query = '';