I find myself in a perplexing situation where I am setting a value to an input element from a route parameter.
<input type="search" class="form-control search-control" :value="search">
Below is the search computed function:
computed: {
search() {
if(this.serviceBenefitRoute) {
return this.serviceBenefitRoute;
}
return this.$store.state.search;
}
}
The issue that I am encountering is that when this.serviceBenefitRoute
has a value, it shows up in the input box but cannot be deleted. It persists even after attempting to remove it. I have been grappling with this problem for quite some time now and my ideas are running thin.