Fix deselection of item in Collection Item Dropdown (#22294)

* Fix collection item deselect by setting it to null

* Add changeset
This commit is contained in:
Hannes Küttner
2024-04-23 18:16:31 +02:00
committed by GitHub
parent f86df7589f
commit 6f47489529
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'@directus/app': patch
---
Fixed the deselection of a saved item in the Collection Item Dropdown

View File

@@ -118,7 +118,7 @@ function onSelection(selectedIds: (number | string)[] | null) {
<template #append>
<template v-if="displayItem">
<v-icon v-tooltip="t('deselect')" name="close" class="deselect" @click.stop="$emit('input', undefined)" />
<v-icon v-tooltip="t('deselect')" name="close" class="deselect" @click.stop="value = null" />
</template>
<template v-else>
<v-icon class="expand" name="expand_more" />