From cad7ac6a71bfd287414ad40cd809d5e021a73e77 Mon Sep 17 00:00:00 2001 From: Munawwirul Jamal Date: Sun, 12 Oct 2025 21:24:35 +0700 Subject: [PATCH] dev: hotfix, adjust some inputs --- app/components/pub/my-ui/combobox/combobox.vue | 9 +++++++-- app/components/pub/my-ui/comp-tab/comp-tab.vue | 2 +- app/components/pub/my-ui/doc-entry/block.vue | 2 +- app/components/pub/ui/table/TableCell.vue | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/components/pub/my-ui/combobox/combobox.vue b/app/components/pub/my-ui/combobox/combobox.vue index f89b6918..4c0c5bb5 100644 --- a/app/components/pub/my-ui/combobox/combobox.vue +++ b/app/components/pub/my-ui/combobox/combobox.vue @@ -23,12 +23,17 @@ const open = ref(false) const selectedItem = computed(() => props.items.find((item) => item.value === props.modelValue)) const displayText = computed(() => { + console.log(selectedItem); if (selectedItem.value?.label) { return selectedItem.value.label } return props.placeholder || 'Pilih item' }) +watch(props, () => { + console.log(props.modelValue); +}) + const searchableItems = computed(() => { const itemsWithSearch = props.items.map((item) => ({ ...item, @@ -69,10 +74,10 @@ function onSelect(item: Item) { :aria-describedby="`${props.id}-search`" :class=" cn( - 'w-full justify-between border md:text-xs 2xl:text-sm font-normal rounded-md px-3 py-2 focus:outline-none focus:ring-1 focus:ring-black dark:focus:ring-white', + 'w-full justify-between border dark:!border-slate-400 h-8 2xl:h-9 md:text-xs 2xl:text-sm font-normal rounded-md px-3 focus:outline-none focus:ring-1 focus:ring-black dark:focus:ring-white', { 'cursor-not-allowed bg-gray-100 opacity-50 border-gray-300 text-gray-500': props.isDisabled, - 'bg-white text-black dark:bg-gray-800 dark:text-white dark:border-gray-600 border-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700': !props.isDisabled, + 'bg-white text-black dark:bg-slate-950 dark:text-white dark:border-gray-600 border-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700': !props.isDisabled, 'text-gray-400 dark:text-gray-500': !modelValue && !props.isDisabled, }, props.class, diff --git a/app/components/pub/my-ui/comp-tab/comp-tab.vue b/app/components/pub/my-ui/comp-tab/comp-tab.vue index e60fd10d..de045bce 100644 --- a/app/components/pub/my-ui/comp-tab/comp-tab.vue +++ b/app/components/pub/my-ui/comp-tab/comp-tab.vue @@ -19,7 +19,7 @@ function changeTab(value: string) {