You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.
I'm having an issue where when I apply a custom validator and a custom twoway filter, the value that appears in the textbox changes. The data in the model is correct, but the value in the textbox is wrong. I can't seem to reproduce this in a jsfiddle, but I can give you pieces of my code.
Here is the custom validator. PhoneNumber is from an npm package called awesome-phonenumber I've added it in the example file in comments.
The problem comes when you toggle the element with v-if. When you hide it, and then show it again, the value in the textbox is wrong and the valid state goes false.
I hope this is enough to help you find the problem. Let me know if you need more clarification. Thanks. Love vue-validator.
The text was updated successfully, but these errors were encountered:
codylandry
changed the title
Validator changing value displayed in textbox
Custom validator with twoway filter changing value displayed in textbox
Mar 10, 2016
I tried to test the fix by replacing vue-validator in the jsfiddle and it still behaves the same. After toggling the v-if back on, nothing is displayed in the textbox.
I'm having an issue where when I apply a custom validator and a custom twoway filter, the value that appears in the textbox changes. The data in the model is correct, but the value in the textbox is wrong. I can't seem to reproduce this in a jsfiddle, but I can give you pieces of my code.
Here is the custom validator. PhoneNumber is from an npm package called awesome-phonenumber
I've added it in the example file in comments.
The problem comes when you toggle the element with v-if. When you hide it, and then show it again, the value in the textbox is wrong and the valid state goes false.
I hope this is enough to help you find the problem. Let me know if you need more clarification. Thanks. Love vue-validator.
before input:
with valid input:
after toggling v-if:
after toggling v-if again:
The text was updated successfully, but these errors were encountered: