Open nandin-borjigin opened 8 years ago
I took a glance at commit0859cd and it seems that validation happens on input
event and my problem here may need a validation on change
event. Haven't dug deep enough to the source code though.
Thank you for your reporting! I'll try to fix it.
Hello @kazupon , is there any update on this problem?
sorry, I can not see the light at this issue. 🙇 because I'm developing the vue-validator v3 for vue 2.0
NP, just asking. :) Good luck
vue & vue-validator version
1.0.24, 2.1.3
Reproduction Link
See jsfiddle
Steps to reproduce
Note
required
rule is used, and if the field is untouched, we think it's acceptable to be empty, hence the.invalid.touched { border: red 1px solid; }
css style.vuex
so I achieve the synchronization in old-school way, instead of usingv-model
What is Expected?
When either of two input fields goes empty and loses focus , both of them should turn into invalid, because their values are synchronized.
What is actually happening?
Only the edited input field acts as expected, another one needs an extra interaction (e.g. click on it and then click somewhere else) to trigger validation