GithubHelp home page GithubHelp logo

Comments (9)

jonsamwell avatar jonsamwell commented on May 22, 2024

Funny you posted this - I am actually working on one now! I'll put a link to it on the Readme.md when it is done. The documentation needs a complete overhaul as it is horrible and it is missing lots of stuff like custom form controls, the various form options you can have (forcing validation, disabling validation, validating hidden elements etc). If you fancy help that would be awesome!

I regards to the submitting - It will unless you have a required attribute on the element (this is an angular thing not this library) however, it might be a bug but haven't noticed it and I'm using the latest version in two projects.

from angular-auto-validate.

phazei avatar phazei commented on May 22, 2024

I have required on all my fields, but using the latest version, it doesn't pop up the error messages on all the fields like in the demo. I manually changed the source so the default for forceValidation was true, and it still didn't.

Edit: As simple as I can get

<form novalidate="novalidate" ng-submit="test()">
    <div class="form-group">
        <label for="title">Title</label>
        <input type="text" id="title" class="form-control" required ng-model="title"/>
    </div>
    <button>submit</button>
</form>
        $scope.test = function() {
            alert("test");
        };

from angular-auto-validate.

martinib77 avatar martinib77 commented on May 22, 2024

I'm having the same problem as @phazei

from angular-auto-validate.

jonsamwell avatar jonsamwell commented on May 22, 2024

Nice I'm doing a plunkr now so I'll confirm the issue and submit a fix -
sorry if it's not working guys I'll add a couple of unit tests to cover
this.

On Wed, 18 Mar 2015 at 08:41 Martin Irigaray [email protected]
wrote:

I'm having the same problem as @phazei https://github.com/phazei


Reply to this email directly or view it on GitHub
#52 (comment)
.

from angular-auto-validate.

phazei avatar phazei commented on May 22, 2024

I've tracked it down to a regression between 1.6.22 and 1.8.3. Working on 1.6.22

from angular-auto-validate.

jonsamwell avatar jonsamwell commented on May 22, 2024

yes I've just found the issue - v1.18.x had a big change adding form options to allow for lots of different things (disabling validation, validating hidden elements, forcing validation etc) so the force validation (when clicking the submit button) wasn't sending through the right value. I've fixed it now and just writing a couple more unit tests around it then I'll release. Sorry all!

from angular-auto-validate.

jonsamwell avatar jonsamwell commented on May 22, 2024

This is now fixed in v1.18.5. I've added a test as well to make sure this doesn't happen again.

https://github.com/jonsamwell/angular-auto-validate/blob/master/tests/services/validationManager.spec.js#L373

Here is a really simple plunker which works with the latest version. I'm going expand this to a fully working demo later today.

http://plnkr.co/edit/3ff7LWduHCedVJZEorv3?p=preview

from angular-auto-validate.

martinib77 avatar martinib77 commented on May 22, 2024

excellent! thank you! it works now.

from angular-auto-validate.

jonsamwell avatar jonsamwell commented on May 22, 2024

Sorry - created a new issue for the demo plunker here #54

from angular-auto-validate.

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.