fix: open close icon change doesnt work for Groupby

This commit is contained in:
Shariq Ansari 2024-06-03 18:49:12 +05:30
parent 3cfd7fd565
commit a3eda80d2c
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<template>
<Autocomplete :options="options" value="" @change="(e) => setGroupBy(e)">
<template #target="{ togglePopover }">
<template #target="{ togglePopover, isOpen }">
<Button
:label="
hideLabel
@ -14,7 +14,7 @@
</template>
<template #suffix>
<FeatherIcon
:name="open ? 'chevron-up' : 'chevron-down'"
:name="isOpen ? 'chevron-up' : 'chevron-down'"
class="h-4"
/>
</template>

View File

@ -2,7 +2,7 @@
<Combobox v-model="selectedValue" nullable v-slot="{ open: isComboboxOpen }">
<Popover class="w-full" v-model:show="showOptions">
<template #target="{ open: openPopover, togglePopover }">
<slot name="target" v-bind="{ open: openPopover, togglePopover }">
<slot name="target" v-bind="{ open: openPopover, togglePopover, isOpen: showOptions }">
<div class="w-full">
<button
class="flex w-full items-center justify-between focus:outline-none"