Skip to content

Commit

Permalink
fix(ui): remove ComboboxButton
Browse files Browse the repository at this point in the history
Remove button to open/close combobox as the combobox is static and
cannot actually be closed.
  • Loading branch information
florianLSP authored and rezib committed Feb 22, 2024
1 parent 2934f3e commit 4fea580
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions racksdb/web/ui/src/components/ComboBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ import { useRouter } from 'vue-router'
import type { Datacenter, Infrastructure } from '@/composables/RacksDBAPI'
import {
Combobox,
ComboboxButton,
ComboboxInput,
ComboboxOption,
ComboboxOptions,
ComboboxLabel
} from '@headlessui/vue'
import { ChevronUpDownIcon, CheckIcon } from '@heroicons/vue/24/outline'
import { CheckIcon } from '@heroicons/vue/24/outline'

const selectedItem: Ref<string | undefined> = ref()
const router = useRouter()
Expand Down Expand Up @@ -92,12 +91,6 @@ onMounted(() => {
/>
</div>

<ComboboxButton
class="absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"
>
<ChevronUpDownIcon class="h-5 w-5 text-gray-400" aria-hidden="false" />
</ComboboxButton>

<ComboboxOptions
static
v-if="filteredItems.length > 0"
Expand Down

0 comments on commit 4fea580

Please sign in to comment.