Skip to content

Commit 8a657a7

Browse files
committed
fix: refactor selection template for v-select in TaskForm.vue
Signed-off-by: Prachya Saechua <[email protected]>
1 parent 9e11916 commit 8a657a7

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

web/src/components/TaskForm.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,14 @@
9696
:multiple="v.type === 'select'"
9797
:chips="v.type === 'select'"
9898
>
99-
<template v-slot:selection="{ item, index }">
100-
<div v-if="v.type === 'select'">
101-
<v-chip
102-
small
103-
close
104-
@click:close="deleteItem(v.name, index)"
105-
>
106-
{{ item.name }}
107-
</v-chip>
108-
</div>
99+
<template v-if="v.type === 'select'" v-slot:selection="{ item, index }">
100+
<v-chip
101+
small
102+
close
103+
@click:close="deleteItem(v.name, index)"
104+
>
105+
{{ item.name }}
106+
</v-chip>
109107
</template>
110108
</v-select>
111109

0 commit comments

Comments
 (0)