Skip to content

Commit

Permalink
fix(BaseAutocomplete): use active slot from ComboboxOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Jun 26, 2023
1 parent 741518d commit 51af625
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/form/BaseAutocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function removeItem(item: any) {
</div>
<ComboboxOption
v-for="item in filteredItems"
v-slot="{ selected }"
v-slot="{ active, selected }"
:key="item.name"
class="px-2 py-1"
as="div"
Expand All @@ -489,6 +489,7 @@ function removeItem(item: any) {
pending,
items,
item,
active,
selected,
}"
>
Expand All @@ -501,6 +502,7 @@ function removeItem(item: any) {
name: props.displayValue(item),
}
"
:active="active"
:selected="selected"
/>
</slot>
Expand Down

0 comments on commit 51af625

Please sign in to comment.