fix: image selection modal Inputs Outputs filtering is not working

This commit is contained in:
Rizumu Ayaka
2026-01-23 18:33:03 +08:00
parent f647c8f9ee
commit 72b02b6d0c
3 changed files with 9 additions and 0 deletions

View File

@@ -209,6 +209,7 @@ async function customSearcher(
:items="sortedItems"
:is-selected="internalIsSelected"
:max-selectable="maxSelectable"
:update-key="items"
@close="closeDropdown"
@item-click="handleSelection"
/>

View File

@@ -1,4 +1,6 @@
<script setup lang="ts">
import type { MaybeRefOrGetter } from 'vue'
import { cn } from '@/utils/tailwindUtil'
import FormDropdownMenuActions from './FormDropdownMenuActions.vue'
@@ -21,6 +23,7 @@ interface Props {
query: string,
onCleanup: (cleanupFn: () => void) => void
) => Promise<void>
updateKey?: MaybeRefOrGetter<unknown>
}
defineProps<Props>()
@@ -54,6 +57,7 @@ const searchQuery = defineModel<string>('searchQuery')
v-model:search-query="searchQuery"
:sort-options="sortOptions"
:searcher
:update-key="updateKey"
/>
<!-- List -->
<div class="relative flex h-full mt-2 overflow-y-scroll">

View File

@@ -1,4 +1,6 @@
<script setup lang="ts">
import type { MaybeRefOrGetter } from 'vue'
import Popover from 'primevue/popover'
import { ref, useTemplateRef } from 'vue'
@@ -13,6 +15,7 @@ defineProps<{
onCleanup: (cleanupFn: () => void) => void
) => Promise<void>
sortOptions: SortOption[]
updateKey?: MaybeRefOrGetter<unknown>
}>()
const layoutMode = defineModel<LayoutMode>('layoutMode')
@@ -53,6 +56,7 @@ function handleSortSelected(item: SortOption) {
<FormSearchInput
v-model="searchQuery"
:searcher
:update-key="updateKey"
:class="
cn(
actionButtonStyle,