Skip to content

Commit 09ac473

Browse files
committed
fix(systemtags): color picker open/close events
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent f63ac94 commit 09ac473

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/systemtags/src/components/SystemTagPicker.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@
5151
<!-- Color picker -->
5252
<NcColorPicker :data-cy-systemtags-picker-tag-color="tag.id"
5353
:value="`#${tag.color}`"
54-
:shown.sync="openedPicker"
54+
:shown="openedPicker === tag.id"
5555
class="systemtags-picker__tag-color"
5656
@update:value="onColorChange(tag, $event)"
57+
@update:shown="openedPicker = $event ? tag.id : false"
5758
@submit="openedPicker = false">
5859
<NcButton :aria-label="t('systemtags', 'Change tag color')" type="tertiary">
5960
<template #icon>
@@ -210,7 +211,7 @@ export default defineComponent({
210211
return {
211212
status: Status.BASE,
212213
opened: true,
213-
openedPicker: false,
214+
openedPicker: false as number | false,
214215
215216
input: '',
216217
tags: [] as TagWithId[],

0 commit comments

Comments
 (0)