I have tried myself and searched extensively to find out how to catch the event that is triggered when you click x icon in a b-form-input of the type 'search':
template:
<b-form-input
id="filter-input"
type="search"
v-model="filter"
@keydown.enter="onFilterChange(filter)"
@emptied.native="resetFilter(emptiedEvent)"
/>
script:
public resetFilter(event: any) {
console.log("todo: resetFilter");
}
I tried different event handlers: @emptied, @reset, @close, @cancel, @drop... None of them seem to fire.
What am I missing? Is there none in Bootstrap Vue, possibly? The docs didn't help.
Is the only way to use the standard @change event (checking if the input value was emptied)?
