This commit is contained in:
2020-03-24 15:39:07 +00:00
parent 08edbf8ace
commit 88338fa7b3

View File

@@ -29,8 +29,6 @@
</div>
</template>
</v-autocomplete>
<!-- <div>autocomplete selected item: {{ selected }}</div> v-bind:value="value"cache-items
<div>searchResults: {{ searchResults }}</div> -->
</div>
</template>
<script>
@@ -106,12 +104,11 @@ export default {
var urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
vm.getList(urlParams);
}
},
data() {
return {
searchResults: [],
errors: [],
errors: [],
searchEntry: null,
searchUnderway: false,
isTagFilter: false,
@@ -142,11 +139,11 @@ export default {
searchEntry(val, oldVal) {
var vm = this;
//clear any local errors
vm.errors = [];
vm.errors = [];
//if the selected search entry is in the results list then it's just a selection made manually not a typed search so bail
//if the search entry is in the results list then it's a drop down selection not a typed search so bail
for (var i = 0; i < vm.searchResults.length; i++) {
if (vm.searchResults[i].name == val) {
if (vm.searchResults[i].name == val) {
return;
}
}
@@ -158,7 +155,7 @@ export default {
});
}
return;
}
}
this.doSearch();
},