[bugy & CR]

This commit is contained in:
romankko2 committed 2023-08-17 17:43:23 +02:00
1 parent 4f7847bc1b
commit 88792943e6
20 files changed
+201 -107

No files matched your search

@@ -10,8 +10,8 @@ export default {
const cleanedItem = normalizedItem.replace(pattern, '');
const cleanedInput = normalizedInput.replace(pattern, '');
// Check if the cleaned item starts with the cleaned input
return cleanedItem.toLowerCase().includes(cleanedInput.toLowerCase());
// Check if the cleaned item starts with the cleaned input and return empty value for dropdown if present
return cleanedItem.toLowerCase().includes(cleanedInput.toLowerCase()) || item === '';
}
}
}