Chart completed

This commit is contained in:
Bahadır Sofuoğlu
2022-11-08 00:11:47 +03:00
parent c8f92b0102
commit 17363dfa5d
6 changed files with 195 additions and 278 deletions

View File

@@ -66,9 +66,9 @@ onMounted(() => {
const searchCountry = (event) => {
setTimeout(() => {
if (!event.query.trim().length) {
this.autoFilteredValue = [...this.autoValue];
autoFilteredValue.value = [...autoValue.value];
} else {
this.autoFilteredValue = this.autoValue.filter((country) => {
autoFilteredValue.value = autoValue.value.filter((country) => {
return country.name.toLowerCase().startsWith(event.query.toLowerCase());
});
}