You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user