Skip to content

Commit

Permalink
Fixes autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed Nov 3, 2023
1 parent dd48983 commit fd9d8ad
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
clearable
hide-selected
item-title="individual.name"
no-filter
item-value="individual.id"
return-object
chips
:hide-no-data="false"
auto-select-first="exact"
v-model="participant"
@update:modelValue="handleClear"

Check warning on line 15 in src/dispatch/static/dispatch/src/components/ParticipantSelect.vue

View workflow job for this annotation

GitHub Actions / build

v-on event '@update:modelValue' must be hyphenated
>
<template #no-data>
<v-list-item>
<v-list-item v-if="!loading">
<v-list-item-title>
No individuals matching <strong>"{{ search }}".</strong>
</v-list-item-title>
Expand Down Expand Up @@ -66,8 +65,9 @@ export default {
let loading = ref(false)
let items = ref([])
console.log(items)
let numItems = ref(10)
let participant = ref(null)
let participant = ref({ ...props.initialValue })
let currentPage = ref(1)
let total = ref(0)
const search = ref(props.initialValue.name)
Expand All @@ -84,6 +84,7 @@ export default {
}
await IndividualApi.getAll(filterOptions).then((response) => {
console.log(response.data.items)
items.value = response.data.items.map(function (x) {
return { individual: x }
})
Expand All @@ -95,9 +96,6 @@ export default {
onMounted(() => {
debouncedGetIndividualData = debounce(getIndividualData, 300)
if (props.initialValue && props.initialValue.name) {
participant = { ...props.initialValue }
}
debouncedGetIndividualData(search.value)
})
Expand Down Expand Up @@ -129,6 +127,7 @@ export default {
handleClear,
initials,
items,
labelProp,

Check failure on line 130 in src/dispatch/static/dispatch/src/components/ParticipantSelect.vue

View workflow job for this annotation

GitHub Actions / build

Duplicate key 'labelProp'. May cause name collision in script or template tag
loading,
loadMore,
participant,
Expand Down

0 comments on commit fd9d8ad

Please sign in to comment.