GithubHelp home page GithubHelp logo

Comments (7)

radekmie avatar radekmie commented on August 16, 2024 1

Go ahead.

from uniforms.

radekmie avatar radekmie commented on August 16, 2024

That's an idea for new functionality. I'll do it asap.

from uniforms.

serkandurusoy avatar serkandurusoy commented on August 16, 2024

Wow!!!

I was just tinkering with the idea (in my head tbh) for the past few days and thinking around extending the form and using the onchange event and the state changes within the lifecycle methods.

But it would just be plain awesome if you were to implement it natively.


On a not directly related, but somewhat accompanying note:

While at it, it would also be great if you could introduce a pristine prop for both the fields and the form, meaning, if a field value has not changed after the initial render, the field is pristine: true and if none of the fields of the form has yet changed, it woud be pristine: true for the form itself or even contain a list of fields that have changed.

that would allow for fine grained validation handling.

for example, one may not want the whole form to undergo validation before its first actual submit, and then all subsequent "changes" would rerun validation.

it would be much like https://github.com/aldeed/meteor-autoform#fine-tuning-validation

from uniforms.

radekmie avatar radekmie commented on August 16, 2024

I've also released 1.0.0-rc.7 on npm.


As to the send note - I don't really get you idea of that pristine state, but your example sounds like validate="onChangeAfterSubmit" on ValidatedForm (and descendants), doesn't it?

from uniforms.

serkandurusoy avatar serkandurusoy commented on August 16, 2024

@radekmie this was quick! thank you very much.

should I open another issue to further discuss the pristine topic?

from uniforms.

radekmie avatar radekmie commented on August 16, 2024

It's fixed in 1.0.0-rc.9.

from uniforms.

serkandurusoy avatar serkandurusoy commented on August 16, 2024

Thanks a lot!

from uniforms.

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.