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.


f18ed01eb7/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:
This commit is contained in:
Muhsin Keloth
2024-10-10 09:17:50 +05:30
committed by GitHub
parent f18ed01eb7
commit b49eaa5c45

View File

@@ -48,7 +48,7 @@ const debouncedEmit = debounce(value => {
const onSearch = value => {
searchTerm.value = value;
debouncedEmit();
debouncedEmit(value);
};
const filteredListItems = computed(() => {