Skip to content

Commit

Permalink
Switch to auto-complete
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed Nov 2, 2023
1 parent 7cb7af4 commit dd48983
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-combobox
<v-autocomplete
:items="items"
:label="labelProp"
:loading="loading"
Expand All @@ -10,15 +10,15 @@
no-filter
return-object
chips
:hide-no-data="false"
auto-select-first="exact"
v-model="participant"
@update:modelValue="handleClear"

Check warning on line 16 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-title>
No individuals matching "
<strong>{{ search }}</strong
>".
No individuals matching <strong>"{{ search }}".</strong>
</v-list-item-title>
</v-list-item>
</template>
Expand All @@ -38,7 +38,7 @@
{{ data.item.title }}
</v-chip>
</template>
</v-combobox>
</v-autocomplete>
</template>

<script>
Expand Down Expand Up @@ -70,7 +70,7 @@ export default {
let participant = ref(null)
let currentPage = ref(1)
let total = ref(0)
const search = ref(props.initialValue)
const search = ref(props.initialValue.name)
let debouncedGetIndividualData = null
Expand All @@ -95,10 +95,10 @@ export default {
onMounted(() => {
debouncedGetIndividualData = debounce(getIndividualData, 300)
if (props.initialValue && props.initialValue.id) {
if (props.initialValue && props.initialValue.name) {
participant = { ...props.initialValue }

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

View workflow job for this annotation

GitHub Actions / build

Must use `.value` to read or write the value wrapped by `ref()`
search = props.initialValue.name
}
debouncedGetIndividualData(search.value)
})
const loadMore = async () => {
Expand Down

0 comments on commit dd48983

Please sign in to comment.