I've been tackling an intriguing challenge that has left me scratching my head. The code I have here is my latest attempt, and while it's close to working correctly, there seems to be something missing. Any assistance would be greatly appreciated. (This project is a volunteer endeavor for an animal adoption agency)
Here's the scenario:
I'm working with a Firebase database containing around 7,000 adopters. They are categorized into an Object structure like this:
{
// Data fields of adopters
}
Now, I have a search box set up like this:
<b-form-input id="searchInputString" v-model="searchInputString" name="searchInputString" type="text" placeholder="Search Adopters" class="form-control mb-3" autocomplete="off" @keyup.native="filterAdopters" />
The @keyup event triggers this function:
filterAdopters: function(event) {
// JavaScript function logic
},
Simply put, I want to filter out results based on multiple search keywords entered by the user in a search query. The current method isn't yielding the desired results, am I missing something? Any suggestions on how to improve this approach?