In this scenario, as soon as I type something into the input field, the glyphicon-remove
icon will appear. Upon clicking on it, the intention is for it to reset the search input.
Below is the code snippet:
<div class="form-group has-feedback has-feedback-left">
<input type="text" class="form-control" v-on:input="fetchProducts()" v-model="search" style="margin-top:15px;" placeholder="Search">
<i class="glyphicon glyphicon-remove form-control-feedback" v-if="search" @click="search=''"></i>
</div>
The issue I'm facing is that when I click on the glyphicon-remove
icon, nothing happens.