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