probil / v-mask

🔡 Tiny input mask library for Vue.js (directive)

Home Page:https://v-mask-demo.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input event triggered immediately even if no data changed

morgant opened this issue · comments

V-Mask and Vue versions

2.2.3, 2.6

Reproduction Link

https://codesandbox.io/s/hungry-grass-pqldb

Steps to reproduce

  1. Add a mask to an input field
  2. Add an @input event handler

What is Expected?

The input event should be fired upon updating the value of the field.

What is actually happening?

The input event is being fired upon the initial value being set, even if it matches the mask formatting and is not modified.

This may be related to Issue #460.

Same here😥