Closed chipit24 closed 6 months ago
Reproduction sandbox is using 2.0.0 version. With latest (2.1.11) there is no 1-23
issue.
But main issue with Safari is confirmed. Will take a look, thanks.
Reproduction sandbox is using 2.0.0 version. With latest (2.1.11) there is no 1-23 issue.
Ok, good to know! I'm running 2.1.11
in my app and wasn't seeing this error but figured I might as well point it out just in case.
But main issue with Safari is confirmed. Will take a look, thanks.
Thank you! 🙌
Looks like it's a known bug: Safari do not firing change
event after value of input was modified. blur
event could helps as a workaround.
Close for now because I don't know how to fix this case.
Describe the bug
The
@change
event is not emitted on inputs that usemaska
in Safari.Steps to reproduce
Set up a basic input that uses
maska
; I essentially copied the first example from the docs:It works the same with either
v-model.lazy
or just the@change
event (which is what.lazy
"de-sugars" to anyway). In Safari (I tested with Safari 17.2 on macOS 14.2 Sonoma), edit the value and observe thatinputValue
is not updated.Not related to the main issue here, but I also noticed in the reproduction link below that despite
data-maska="#-#"
being set, if I remove.lazy
and enter123
, it will setinputValue
to1-23
instead of1-2
as expected.Reproduction link
https://stackblitz.com/edit/vue-maska-rmd3vv?file=src%2FApp.vue