GithubHelp home page GithubHelp logo

Comments (6)

davegot13 avatar davegot13 commented on July 19, 2024

Wanted to provide an update. I did some more work and this applies more broadly. If you assign a selector to a jquery variable like:

$myVar = $("#someInput");

if you do $myVar.require(), it works the first time. However, if you call it again, the code doesn't raise an error. This all points back to the validate method where the method sets $obj.reductions to [] in the case nothings passes. When $obj.reductions = [] then that should be treated in the code as undefined (maybe even just set $obj.reductions to undefiend if nothing passes).

from validity.

whatgoodisaroad avatar whatgoodisaroad commented on July 19, 2024

I see the problem you're describing. This appears to be a design flaw in validity. Expect a fix soon.

from validity.

ajwaka avatar ajwaka commented on July 19, 2024

I too am now running into this issue - Hope to see the fix soon.

Thanks for this plugin - It's great since I don't have to apply the validation to a form - I can simply validate anything I need on any action. Really appreciated!

from validity.

whatgoodisaroad avatar whatgoodisaroad commented on July 19, 2024

Hey guys. I've pushed a fix with a version bump to 1.3.7. My tests show the problem gone, but I'd appreciate it if you guys had a look.

Thanks a lot!

from validity.

davegot13 avatar davegot13 commented on July 19, 2024

Looks like the fix works. I cannot reproduce the problem anymore

from validity.

whatgoodisaroad avatar whatgoodisaroad commented on July 19, 2024

Excellent. Thanks for the report!

from validity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.