Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/laporan-tindakan-185

This commit is contained in:
Khafid Prayoga
2025-12-03 17:16:32 +07:00
6 changed files with 27 additions and 28 deletions
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { cn } from '~/lib/utils'
import { type Item } from './index'
const props = defineProps<{
@@ -14,6 +13,8 @@ const props = defineProps<{
isDisabled?: boolean
}>()
const model = defineModel()
const emit = defineEmits<{
'update:modelValue': [value: string | number]
'update:searchText': [value: string | number]
@@ -57,6 +58,7 @@ const searchableItems = computed(() => {
})
function onSelect(item: Item) {
model.value = item.value
emit('update:modelValue', item.value)
open.value = false
}