From f8e1fd8c95b2baef19ca7268d6456aea279a90e8 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:09:31 +0100 Subject: [PATCH 1/4] make multiselect conditionally rendered --- .../History/Content/ContentItem.vue | 1 + .../TagsMultiselect/StatelessTags.vue | 179 +++++++++--------- 2 files changed, 94 insertions(+), 86 deletions(-) diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index a4bf4c8c398b..aeae2c6bff83 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -84,6 +84,7 @@ :elements-datatypes="item.elements_datatypes" /> (), { @@ -68,8 +68,9 @@ const { editing, ariaExpanded, onOpen, onClose } = useMultiselect(); const multiselectElement: Ref = ref(null); -function openMultiselect() { - //@ts-ignore bad library types +async function openMultiselect() { + editing.value = true; + await nextTick(); multiselectElement.value?.activate(); } @@ -110,67 +111,82 @@ function onTagClicked(tag: string) {