There is a little "x" which appears when I type in the following search control, when I click it my filter is cleared and my page re-renders. This works fine in chrome. However, it does not work in Edge 17.17134, clicking the "x" does nothing. How can I make it work?
HTML:
<div class="input-group search">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fa fa-search"></i>
</span>
</div>
<input type='search'
class="form-control"
placeholder="Type to filter..."
v-model="filter"
@input="performFilter" />
</div>
CODE:
data: function () {
return {
filter: ''
};
},
methods: {
performFilter() {
var filter = this.filter.toLowerCase();
this.objs.forEach(function (obj) {
obj.visible = obj.name.toLowerCase().includes(filter);
});
}
}
Update:
Seems its a bug in Edge https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/17584515/