feat(sep): adjust combobox filter
This commit is contained in:
No files matched your search
@@ -36,9 +36,7 @@ watch(props, () => {
|
||||
})
|
||||
|
||||
watch(debouncedSearchText, (newValue) => {
|
||||
if (newValue.length > 0) {
|
||||
emit('update:searchText', newValue)
|
||||
}
|
||||
emit('update:searchText', newValue)
|
||||
})
|
||||
|
||||
const searchableItems = computed(() => {
|
||||
@@ -113,7 +111,11 @@ function onSelect(item: Item) {
|
||||
class="h-9 border-0 border-b border-gray-200 bg-white text-black focus:ring-0 dark:border-gray-700 dark:bg-gray-800 dark:text-white"
|
||||
:placeholder="searchPlaceholder || 'Cari...'"
|
||||
:aria-label="`Cari ${displayText}`"
|
||||
:v-model="searchText"
|
||||
@input="
|
||||
(evt: any) => {
|
||||
searchText = evt?.target?.value || ''
|
||||
}
|
||||
"
|
||||
/>
|
||||
<CommandEmpty class="py-6 text-center text-sm text-gray-500 dark:text-gray-400">
|
||||
{{ emptyMessage || 'Item tidak ditemukan.' }}
|
||||
|
||||
Reference in New Issue
Block a user