Skip to content

Commit

Permalink
fix: preserve non disabled styles
Browse files Browse the repository at this point in the history
  • Loading branch information
krantheman committed May 23, 2024
1 parent da844fb commit 80dd325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<slot name="target" v-bind="{ open: openPopover, togglePopover }">
<div class="w-full">
<button
class="flex h-7 w-full items-center justify-between gap-2 rounded bg-gray-100 px-2 py-1 transition-colors focus:ring-2 focus:ring-gray-400"
:class="{ 'bg-gray-200': isComboboxOpen, 'text-gray-600 bg-gray-50 placeholder-gray-400 hover:bg-gray-50': disabled }"
class="flex h-7 w-full items-center justify-between gap-2 rounded px-2 py-1 transition-colors focus:ring-2 focus:ring-gray-400"
:class="{ 'bg-gray-200': isComboboxOpen, 'text-gray-600 bg-gray-50 placeholder-gray-400 hover:bg-gray-50': disabled, 'bg-gray-100 hover:bg-gray-200': !disabled }"
:disabled="disabled"
@click="() => togglePopover()"
>
Expand Down

0 comments on commit 80dd325

Please sign in to comment.