Skip to content

Commit

Permalink
Fix allowCustom flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrov-adrian committed May 7, 2022
1 parent 32e24b8 commit 6375967
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/interface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@
</template>
</v-list>

<template v-else-if="localInput && !allowCustom">
<v-list>
<v-list-item class="no-items">
{{ t('no_items') }}
</v-list-item>
</v-list>
</template>
<v-list v-else-if="localInput && !allowCustom">
<v-list-item class="no-items">
{{ t('no_items') }}
</v-list-item>
</v-list>
</v-menu>

<div v-if="sortedItems.length" class="tags">
Expand All @@ -64,6 +62,7 @@
class="tag clickable"
small
label
clickable
@click="deleteItem(item)"
>
{{ item[junctionField][referencingField] }}
Expand Down Expand Up @@ -109,7 +108,7 @@ export default defineComponent({
},
allowCustom: {
type: Boolean,
default: false,
default: true,
},
referencingField: {
type: String,
Expand Down

0 comments on commit 6375967

Please sign in to comment.