1906 FIX search form autocomplete multi terms
This commit is contained in:
@ -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(){
|
||||
|
Reference in New Issue
Block a user