kazupon / vue-validator

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

Validator becomes null when modifying a components property. #189

Closed Gouvi closed 8 years ago

Gouvi commented 8 years ago

Here is the jsFiddle before trying to explain it too much: http://jsfiddle.net/trmdb700/8/

To replicate the issue: 1) Open modal 2) Close the modal with the cross 3) Open the modal again 4) Try submit any content in the input field 5) You will receive "Uncaught TypeError: Cannot read property 'valid' of null"

Somehow the validator is getting dropped? Should I be approaching the validation a different way?

kazupon commented 8 years ago

In this case, validator name event is conflicted with scope name

I recommend that you are to be named other validator name (e.g. validator1).