This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user