diff --git a/src/custom-image-search-box/custom-image-search-box.tsx b/src/custom-image-search-box/custom-image-search-box.tsx index 10f4418a47d0256af00c759e62943b6c119c55f7..0b7e51d048563c6e08f5b62cd0d83e19260c1fb3 100644 --- a/src/custom-image-search-box/custom-image-search-box.tsx +++ b/src/custom-image-search-box/custom-image-search-box.tsx @@ -18,7 +18,12 @@ export const CustomImageSearchBox = defineComponent({ const searchValue = ref(''); const onSearch = (): void => { - emit('customEvent', { tag: 'SEARCH', value: searchValue.value }); + if (props.controller.dashboard) { + const Dc = props.controller.dashboard; + if (Dc) { + Dc.refresh({ query: searchValue.value }); + } + } }; return {