This commit is contained in:
2021-06-29 23:52:17 +00:00
parent 92d7d8a1ea
commit 655e216db9
2 changed files with 21 additions and 3 deletions

View File

@@ -37,14 +37,25 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////
export default {
beforeUpdate() {
//this was the original code that was working for months, even years then suddenly stopped working after a vue update
// beforeUpdate() {
// console.log("TAG-PICKER: beforeupdate called");
// //Set the initial list items based on the record items, this only needs to be called once at init
// if (!this.initialized && this.value != null && this.value.length > 0) {
// console.log("TAG-PICKER: beforeupdate init in if statement");
// this.sourcetags = this.value;
// this.initialized = true;
// }
// },
created() {
//Set the initial list items based on the record items, this only needs to be called once at init
if (!this.initialized && this.value != null && this.value.length > 0) {
this.sourcetags = this.value;
this.initialized = true;
}
},
data() {
return {
sourcetags: [],