#1906, click on header menu base reset search
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user