make sure dropdown/combobox lists stay visible during close animation to

avoid layout shifts
This commit is contained in:
Gregor Vostrak
2026-07-09 12:33:56 +02:00
parent c90c1ed8fa
commit e302421765
7 changed files with 47 additions and 22 deletions

View File

@@ -85,13 +85,18 @@ function updateValue(client: { id: string | null; name: string }) {
<slot name="trigger"></slot>
</template>
<template #content>
<div v-if="open">
<div>
<ComboboxRoot
v-model:open="open"
:open="true"
:model-value="currentClient"
class="relative"
:ignore-filter="true"
@update:model-value="updateValue">
@update:model-value="updateValue"
@update:open="
(value: boolean) => {
if (!value) open = false;
}
">
<ComboboxAnchor>
<ComboboxInput
ref="searchInput"