kazupon / vue-validator

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

with vuejs2.1.5 validity component render undefined #348

Open atomicmm opened 7 years ago

atomicmm commented 7 years ago

vue & vue-validator version

2.1.5, 3.0.0-alpha1

with the latest vuejs ,component validity will be render error content with undefined:

success

        <validation name="va2">
            <validity field="input2" :validators="{required:true,minlength:3}">
                <input type="text" ref="input2" @input="handleValidate" @focusout="handleValidate">
            </validity>
        </validation>

error with extra div wrapper,got undefined

        <validation name="va1">
            <div>
                <validity field="input1" :validators="{required:true,minlength:3}">
                    <input type="text" ref="input1" @input="handleValidate" @focusout="handleValidate">
                </validity>
            </div>
        </validation>
rosemalejohn commented 7 years ago

I encountered same problem after @kazupon latest commits. How bad I already implemented it in our system which is running with Vue 2.0. I hope this will be fixed soon.

philina commented 7 years ago

the same problem,vue 2.1.0

lllleeo commented 7 years ago

the same problem, vue 2.1.6