You realize that the search is working perfectly:
I wanted to only list the records when something was typed in the input search , I know what place to make this change would be in that code snippet:
filteredBancodedaos () {
return this.bancodedados
.filter((bancoDeDado)=>{
return (
bancoDeDado.name.match(this.MySearch) ||
bancoDeDado.height.match(this.MySearch) ||
bancoDeDado.mass.match(this.MySearch) ||
bancoDeDado.eye_color.match(this.MySearch) ||
bancoDeDado.gender.match(this.MySearch) ||
bancoDeDado.hair_color.match(this.MySearch)
)
})
}
}
Would anyone have an idea how I could do this?