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

View File

@@ -29,8 +29,6 @@
</div> </div>
</template> </template>
</v-autocomplete> </v-autocomplete>
<!-- <div>autocomplete selected item: {{ selected }}</div> v-bind:value="value"cache-items
<div>searchResults: {{ searchResults }}</div> -->
</div> </div>
</template> </template>
<script> <script>
@@ -106,7 +104,6 @@ export default {
var urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value; var urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
vm.getList(urlParams); vm.getList(urlParams);
} }
}, },
data() { data() {
return { return {
@@ -144,7 +141,7 @@ export default {
//clear any local errors //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++) { for (var i = 0; i < vm.searchResults.length; i++) {
if (vm.searchResults[i].name == val) { if (vm.searchResults[i].name == val) {
return; return;