1906 FIX search form autocomplete multi terms

This commit is contained in:
2022-08-15 16:57:57 +02:00
parent 1993f80d8d
commit db6a82f7f7
9 changed files with 29 additions and 19 deletions

View File

@ -124,7 +124,7 @@ export default {
watch: {
typed(n, o){
console.log('watch typed changed o:' + o + ' n:' +n)
// todo remove terms from autocomplete if removed from typed
// remove terms from autocomplete if removed from typed
const r = /,\s?$/
let tag_list = n.replace(r,'').split(', ')
console.log('watch typed tag_list', tag_list)
@ -149,7 +149,8 @@ export default {
},
created() {
// fill component values with store values in case of direct page loading
this.typed = this.keys
console.log('SearchForm created, this.keys', this.keys)
this.typed = this.keys.length ? this.keys.join(', ') + ', ' : ''
this.autocomplete = this.terms
},
mounted(){