#1906, click on header menu base reset search

This commit is contained in:
2022-09-13 11:26:34 +02:00
parent f919dab0e9
commit 40b7e75d44
10 changed files with 61 additions and 27 deletions

View File

@@ -123,9 +123,16 @@ export default {
},
watch: {
typed(n, o){
console.log('watch typed changed o:' + o + ' n:' +n)
console.log(`watch typed changed o:(${typeof o})${o} | n:(${typeof n})${n}`, o, n)
// if (typeof n === 'string') {
// // remove terms from autocomplete if removed from typed
// const r = /,\s?$/ // remove last comma space
// let tag_list = n.replace(r,'').split(', ')
// }else{
// let tag_list = n
// }
// remove terms from autocomplete if removed from typed
const r = /,\s?$/
const r = /,\s?$/ // remove last comma space
let tag_list = n.replace(r,'').split(', ')
console.log('watch typed tag_list', tag_list)
console.log('watch typed autocomplete before', this.autocomplete)
@@ -136,11 +143,11 @@ export default {
}
});
console.log('watch typed autocomplete after', this.autocomplete)
}
// keys(n, o){
// console.log('watch keys changed', o, n)
// this.typed = n
// },
},
keys(n, o){
console.log('watch keys changed', o, n)
this.typed = n ? n.join(', ') + ', ' : ''
},
// terms(n, o){
// // if term change from store
// console.log('watch terms changed', o, n)