Update select.vue
This commit is contained in:
parent
74fb7cb03d
commit
bb27d72574
1 changed files with 1 additions and 1 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Reference in a new issue