Batch updating and deleting, multi-select

This commit is contained in:
Mark Cooper 2021-08-26 18:32:05 -05:00
parent 8c9fb0d45e
commit 88c7c1632e
13 changed files with 358 additions and 33 deletions

View file

@ -91,12 +91,20 @@ export default {
}
this.isFocused = false
if (this.input !== this.textInput) {
this.input = this.$cleanString(this.textInput) || null
var val = this.$cleanString(this.textInput) || null
this.input = val
if (val && !this.items.includes(val)) {
this.$emit('newItem', val)
}
}
}, 50)
},
submitForm() {
this.input = this.$cleanString(this.textInput) || null
var val = this.$cleanString(this.textInput) || null
this.input = val
if (val && !this.items.includes(val)) {
this.$emit('newItem', val)
}
this.currentSearch = null
},
clickedOption(e, item) {