How do I pass the this
object (referring to the input element vs. whole component) to a handler function in Vue?
<input
type="number"
min="0"
max="8000000"
step="100000"
v-model="minPriceInput"
@change="setPriceRange(minPriceInput, maxPriceInput)"
/>
methods:
setPriceRange(min, max) {
this.blur(); // or whatever else I might do with the input
state.commit("setPriceRange", [min, max]);
}