kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

Data not being ran though 'read' in two way filters with validator applied. #171

Closed codylandry closed 8 years ago

codylandry commented 8 years ago

I finally got around to trying the new change and I still see an issue. When v-if is toggled on and the element renders, the value in the textbox is straight from the data model and not ran through the filter. The modified fiddle explains the problem better:

http://jsfiddle.net/7emvv9eL/

If you type some characters in uppercase, the model should still be lowercase and when toggling off and on again, they should be uppercase. This does work when you remove the validator from the input element.

Related issue: #167