From 655e216db91be248cff9c423119b1a4660c28cda Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 29 Jun 2021 23:52:17 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 9 ++++++++- ayanova/src/components/tag-picker.vue | 15 +++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4939d18d..dfa20dca 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -416,7 +416,7 @@ todo: many biz objects are not using new PUT methodology -CURRENTLY DOING: +CURRENTLY DOING: make sure tags is fixed fully after created change bugbug: tags are not *displaying* when a record is opened until click in a field @@ -435,6 +435,13 @@ bugbug: tags are not *displaying* when a record is opened until click in a field check for another use of v-autocomplete and see if same issue to confirm then check for update since or bug reports on vuetify Maybe just check for front end updates through vue ui and if there any vuetify do it then check if fixed before digging too deeply + Weird but was using beforeUpdate in tags and no where else so switched to created adn now it works + could find no changes related to this specifically but there was a bunch of vue changes + so it appears to work properly now at least tested in wo and customer just opening and viewing + + TODO: test making new tags in new record, editing tags etc and adding to make sure it's really working properly + + todo: User duplicate not working, error about optionsobj Message:_vm.optionsObj is undefined diff --git a/ayanova/src/components/tag-picker.vue b/ayanova/src/components/tag-picker.vue index 5444bef6..9a6f042d 100644 --- a/ayanova/src/components/tag-picker.vue +++ b/ayanova/src/components/tag-picker.vue @@ -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: [],