case 4106
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
:error-messages="form().serverErrors(this, 'unit')"
|
||||
:items="selectLists.priorUnits"
|
||||
@input="fieldValueChanged('unit')"
|
||||
@update:search-input="vComboBoxWorkAroundForUnit"
|
||||
></v-combobox>
|
||||
</v-col>
|
||||
|
||||
@@ -323,6 +324,16 @@ export default {
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
},
|
||||
vComboBoxWorkAroundForUnit(currentValue) {
|
||||
//shitty workaround due to bug https://github.com/vuetifyjs/vuetify/issues/4679#issuecomment-682456398
|
||||
//fires every time the control changes so check to see if actual change or not
|
||||
if (currentValue == this.obj.unit) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.obj.unit = currentValue;
|
||||
this.fieldValueChanged("unit");
|
||||
},
|
||||
fieldValueChanged(ref) {
|
||||
if (
|
||||
this.formState.ready &&
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
:error-messages="form().serverErrors(this, 'unit')"
|
||||
:items="selectLists.priorUnits"
|
||||
@input="fieldValueChanged('unit')"
|
||||
@update:search-input="vComboBoxWorkAroundForUnit"
|
||||
></v-combobox>
|
||||
</v-col>
|
||||
<v-col
|
||||
@@ -316,6 +317,16 @@ export default {
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
},
|
||||
vComboBoxWorkAroundForUnit(currentValue) {
|
||||
//shitty workaround due to bug https://github.com/vuetifyjs/vuetify/issues/4679#issuecomment-682456398
|
||||
//fires every time the control changes so check to see if actual change or not
|
||||
if (currentValue == this.obj.unit) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.obj.unit = currentValue;
|
||||
this.fieldValueChanged("unit");
|
||||
},
|
||||
fieldValueChanged(ref) {
|
||||
if (
|
||||
this.formState.ready &&
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
:error-messages="form().serverErrors(this, 'unitOfMeasure')"
|
||||
:items="selectLists.priorUnits"
|
||||
@input="fieldValueChanged('unitOfMeasure')"
|
||||
@update:search-input="vComboBoxWorkAroundForUnit"
|
||||
></v-combobox>
|
||||
</v-col>
|
||||
|
||||
@@ -443,6 +444,16 @@ export default {
|
||||
form() {
|
||||
return window.$gz.form;
|
||||
},
|
||||
vComboBoxWorkAroundForUnit(currentValue) {
|
||||
//shitty workaround due to bug https://github.com/vuetifyjs/vuetify/issues/4679#issuecomment-682456398
|
||||
//fires every time the control changes so check to see if actual change or not
|
||||
if (currentValue == this.obj.unitOfMeasure) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.obj.unitOfMeasure = currentValue;
|
||||
this.fieldValueChanged("unitOfMeasure");
|
||||
},
|
||||
fieldValueChanged(ref) {
|
||||
if (
|
||||
this.formState.ready &&
|
||||
|
||||
Reference in New Issue
Block a user