This commit is contained in:
2020-12-01 00:20:20 +00:00
parent 359706454b
commit 89038a1a70
4 changed files with 20 additions and 16 deletions

View File

@@ -157,17 +157,17 @@ export default {
type: this.ayaType,
id: idToOpen
});
},
selectionMade(e) {
this.clearErrors();
if (e == undefined) {
},
selectionMade(e) {
this.clearErrors();
if (e == undefined) {
//this will happen when clear clicked
return;
}
if (e.id != null) {
//this is required for the control to update and parent form to detect it
this.$emit("input", e.id);
//simulate empty selection:
e = window.$gz.form.getNoSelectionItem(true);
}
//this is required for the control to update and parent form to detect it
this.$emit("input", e.id);
this.lastSelection = e;
},
fetchValueIfNotPresent() {
@@ -286,7 +286,7 @@ export default {
//NOTE debounce with a watcher is a bit different, currently it has to be done exactly this way, nothing else will work properly
//https://vuejs.org/v2/guide/migration.html#debounce-Param-Attribute-for-v-model-removed
//-----------------
//console.log("doSearch debounced",searchFor);
let vm = this;
let isATwoTermQuery = false;
let queryTerms = [];