-
-
Notifications
You must be signed in to change notification settings - Fork 132
Directive on chrome browser (android) not apply the mask. #454
Comments
I have the same issue. Chrome 78, Android 5.1 <input
v-model="authTelephone"
type="tel"
v-mask="'+7 (###) ###-##-##'"
placeholder="+7"
name="phone"
class="txt-field"
/> |
It's not working for me either, it only applies the mask when focusing the input |
Same issue here, on iphone works fine but not on android |
Exact same issue as well. We've only started experiencing this issue on the devices we're testing on roughly a week or so ago, but it is indeed happening and only on Android chrome. Any efforts to address this issue would be greatly appreciated as this is a GREAT package overall and we really like using it in my shop. |
@henriquecustodia and friends: I have opened a PR (above) to address this issue, but I am unable to easily test it since every device I own is an Apple product. Any chance you guys could try to grab that tag and see how it performs? |
🎉 This issue has been resolved in version 2.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Just FYI, this resolved same issue on Chrome (OS X) when in debug and using "Toggle Device Toolbar" feature |
Directive on chrome browser (android) not apply the mask.
On desktop (macOS, windows, etc) using chrome and iOS 10 (chrome and safari), works fine.
I think the
componentUpdated
hook of directive is "overriding" the value (masked) to a value not masked after the parent component has a change.Seems that problem has relation with this code:
Changing the code above to:
Seems fix the bug.
V-Mask and Vue versions
2.0.2, 2.6.10
Reproduction Link
Steps to reproduce
The text was updated successfully, but these errors were encountered: