This commit is contained in:
2019-06-21 20:30:40 +00:00
parent 0fa4d69304
commit a4f61efe37
2 changed files with 12 additions and 2 deletions

View File

@@ -76,7 +76,16 @@ export default {
vm.$gzHandleFormError(err); vm.$gzHandleFormError(err);
}); });
}, },
value() { value(val) {
// var hasChanged = false;
// if (this.oldDate != null && this.date != this.oldDate) {
// hasChanged = true;
// }
// this.oldDate = this.date;
// if (hasChanged) {
this.$emit("input", val); //always in UTC
this.$emit("change", val); //always in UTC
// }
// this.localValue = this.value; // this.localValue = this.value;
} }
}, },

View File

@@ -222,7 +222,7 @@
<script> <script>
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Xeslint-disable */ /* eslint-disable */
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "inventory-widget-edit"; const FORM_KEY = "inventory-widget-edit";
@@ -396,6 +396,7 @@ export default {
methods: { methods: {
onChange(ref) { onChange(ref) {
if (!this.formState.loading && !this.formState.readOnly) { if (!this.formState.loading && !this.formState.readOnly) {
if(ref=="tags") console.log("TAGS CHANGED");
this.$gzform.onChange(this, ref); this.$gzform.onChange(this, ref);
} }
}, },