Fix project dependencies search (#4932)

* add search on all project types except mod packs

* add search by ID

* fix placeholder

* rename to dependency select
This commit is contained in:
Truman Gao
2025-12-19 12:27:17 -08:00
committed by GitHub
parent 0268600044
commit 1f48f5b5af
3 changed files with 21 additions and 5 deletions

View File

@@ -170,6 +170,7 @@ const props = withDefaults(
triggerClass?: string
forceDirection?: 'up' | 'down'
noOptionsMessage?: string
disableSearchFilter?: boolean
}>(),
{
placeholder: 'Select an option',
@@ -244,7 +245,7 @@ const optionsWithKeys = computed(() => {
})
const filteredOptions = computed(() => {
if (!searchQuery.value || !props.searchable) {
if (!searchQuery.value || !props.searchable || props.disableSearchFilter) {
return optionsWithKeys.value
}