1👍
✅
You should change the computed property like this:
computed:
{
chosenStatuses()
{
return this.task.map(item => item.toUpperCase());
},
filteredData()
{
return this.chosenStatuses.length > 0
? this.recordList.filter(item => this.chosenStatuses.includes(item.status.toUpperCase()))
: this.recordList;
}
}
- [Vuejs]-Why Vue click event works only one time? Click event works one time ana not working any more
Source:stackexchange.com