Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion packages/ui/src/components/base/Combobox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
>
<template v-if="showChevron" #trailing>
<ChevronLeftIcon
class="pointer-events-none size-5 text-secondary transition-transform duration-150"
class="cursor-pointer size-5 text-secondary transition-transform duration-150"
:class="isOpen ? (openDirection === 'down' ? 'rotate-90' : '-rotate-90') : '-rotate-90'"
@mousedown.prevent
@click.stop="handleSearchIconClick"
/>
</template>
</Input>
Expand Down Expand Up @@ -999,6 +1001,15 @@ function handleSearchClick() {
}
}

function handleSearchIconClick() {
if (isOpen.value) {
closeDropdown(false)
return
}

openDropdown()
}

function handleWindowResize() {
if (isOpen.value) {
scheduleDropdownPositionUpdate()
Expand Down
Loading