This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<v-autocomplete
|
||||
v-bind:value="value"
|
||||
v-on:input="test($event)"
|
||||
v-on:input="selectionMade($event)"
|
||||
return-object
|
||||
:items="searchResults"
|
||||
:label="label"
|
||||
@@ -22,7 +22,6 @@
|
||||
@click:prepend="handleErrorClick"
|
||||
@mousedown="dropdown"
|
||||
auto-select-first
|
||||
cache-items
|
||||
>
|
||||
<template v-slot:prepend-item v-if="hasError()">
|
||||
<div class="pl-2">
|
||||
@@ -30,7 +29,7 @@
|
||||
</div>
|
||||
</template>
|
||||
</v-autocomplete>
|
||||
<!-- <div>autocomplete selected item: {{ selected }}</div> v-bind:value="value"
|
||||
<!-- <div>autocomplete selected item: {{ selected }}</div> v-bind:value="value"cache-items
|
||||
<div>searchResults: {{ searchResults }}</div> -->
|
||||
</div>
|
||||
</template>
|
||||
@@ -218,16 +217,13 @@ export default {
|
||||
data: "ay-start-form-picklist"
|
||||
});
|
||||
},
|
||||
test(e) {
|
||||
selectionMade(e) {
|
||||
if (e == undefined) {
|
||||
//this will happen when clear clicked
|
||||
return;
|
||||
}
|
||||
console.log("value changed deciding to emit", e);
|
||||
console.log("e.id=", e.id);
|
||||
if (e.id != null) {
|
||||
console.log("emitting:", e);
|
||||
this.$emit("input", e.id);
|
||||
this.$emit("change", e.id);
|
||||
}
|
||||
},
|
||||
dropdown(e) {
|
||||
|
||||
Reference in New Issue
Block a user