This commit is contained in:
2019-06-21 20:48:08 +00:00
parent 0a98f703d1
commit 89854e1ebb
2 changed files with 11 additions and 12 deletions

View File

@@ -76,12 +76,11 @@ export default {
vm.$gzHandleFormError(err);
});
},
value(val) {
//this ensures the parent form gets the onchange event
value(val) {
//this ensures the parent form gets the onchange event
//not actually sure why there are two here but it worked with the datetime picker so I replicated it here
this.$emit("input", val);
this.$emit("change", val); //always in UTC
// }
// this.localValue = this.value;
this.$emit("change", val);
}
},
@@ -89,7 +88,7 @@ export default {
addTag() {
var theTag = this.tagSearchEntry;
theTag = this.normalizeTag(theTag);
//make sure there are no existing of the same tag?
//Maybe need to make sure there are no existing of the same tag? Although that shouldn't be possible technically
this.sourcetags.push(theTag);
this.value.push(theTag);
this.tagSearchEntry = "";