Skip to content
This repository was archived by the owner on Dec 25, 2017. It is now read-only.
This repository was archived by the owner on Dec 25, 2017. It is now read-only.

Uncaught TypeError: Cannot read property 'invalid' of undefined #340

@shinygang

Description

@shinygang

vue & vue-validator version

2.0.3, 3.0.0-alpha.1

Reproduction Link

https://jsfiddle.net/7kzcgy3p/

What is Expected?

error

What is actually happening?

Uncaught TypeError: Cannot read property 'invalid' of undefined

Activity

shinygang

shinygang commented on Nov 15, 2016

@shinygang
Author

the other question:
1、hao to activate the validation1 validate in my js code. which method?
2、when will the V3‘s document be released?

farrance

farrance commented on Nov 16, 2016

@farrance

I'm having the same issue.

kazupon

kazupon commented on Nov 16, 2016

@kazupon
Owner

Thank you for your feedback.
I seem that is bug ...
I'll try to fix next release.

Sorry, I'm busy hard to work ...
Please wait 🙇

mesis

mesis commented on Nov 24, 2016

@mesis

I'm having the same issue here.

maxKimoby

maxKimoby commented on Nov 24, 2016

@maxKimoby

The bug makes the plugin unusable when there are more than a single validity tag, so generally unusable. It seems that only the first validity element is processed. I know that because I put a watch on $validation.myValidator and when it changes from undefined to something, it only contains the first validity element.

Really needs documentation and a quick and functional release for 2.0, this is really annoying for people upgrading from 1.x that were using the previous VueValidator release (which was marvelous).

Edit : The plugin seems to be functional even though the error still persists. But something throwing an error is never functional for a good programmer.

hxd520love

hxd520love commented on Nov 26, 2016

@hxd520love

image
image
一开始会有三个undefined,然后才是对的。而且按照文档写的,请大大查看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kazupon@farrance@shinygang@hxd520love@mesis

        Issue actions

          Uncaught TypeError: Cannot read property 'invalid' of undefined · Issue #340 · kazupon/vue-validator