From b49eaa5c450f8aaf913059aa868f4e52fae3d738 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Thu, 10 Oct 2024 09:17:50 +0530 Subject: [PATCH] fix: Search linear issues (#10253) In the `DropdownList.vue` component, the `onSearch` function was not properly passing the search value to the parent component. This resulted in the `onSearch` event in parent components (such as `LinkIssue.vue`) receiving an undefined value instead of the actual search term. https://github.com/chatwoot/chatwoot/blob/f18ed01eb7725954fc9c0d45201ac3c53cd9855b/app/javascript/dashboard/components/ui/Dropdown/DropdownList.vue#L45-L52 The issue was resolved by modifying the `onSearch` function in `DropdownList.vue` to correctly pass the search value to the `debouncedEmit` function: --- .../dashboard/components/ui/Dropdown/DropdownList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/ui/Dropdown/DropdownList.vue b/app/javascript/dashboard/components/ui/Dropdown/DropdownList.vue index e6de8e1b1..8b77d54fb 100644 --- a/app/javascript/dashboard/components/ui/Dropdown/DropdownList.vue +++ b/app/javascript/dashboard/components/ui/Dropdown/DropdownList.vue @@ -48,7 +48,7 @@ const debouncedEmit = debounce(value => { const onSearch = value => { searchTerm.value = value; - debouncedEmit(); + debouncedEmit(value); }; const filteredListItems = computed(() => {