This commit is contained in:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user