Giter VIP home page Giter VIP logo

Comments (5)

twisty avatar twisty commented on June 9, 2024

Hi @petersvei, I haven't had a chance to try this with formsy-react v0.18 yet.

However, I've had success using this alongside react v15 with formsy-react v0.17. (npm will warn about an unsatisfied peer dependency on react 0.14, but if you use npm v3.x it doesn't try and install peer dependencies, so it'll be okay).

You say it doesn't work -- what happened / didn't happen? Did the form render? Any errors in the browser console?

from formsy-react-components.

sveip avatar sveip commented on June 9, 2024

Thanks for you lightning fast response @twisty !

Same here, it was working fine with [email protected] except the unmet dep. warning.

The problem I experience when I upgrade is that the properties of the inputs seems not to be defined. If I try to set this.refs.form.inputs.name.setValue i get an error that it is undefined. The input is created like this:

Input layout="vertical" name="my_name" type="text" label="My Name" validations={{ validate: this.validate.my_name }} />

This worked fine with [email protected] (which I know is not a good indicator that it's related to that :) .)

from formsy-react-components.

twisty avatar twisty commented on June 9, 2024

Hi, I've had a quick look and have observed this:

So it looks like this is a formsy-react change (is Formsy.Form.inputs listed as a public API? -- I don't think so?).

A workaround may be to set a React ref on the form components you need to track and use those instead, instead of relying form.inputs.

I'm going to close this because I don't think it is a FRC problem.

Good luck with sorting it out though!

from formsy-react-components.

twisty avatar twisty commented on June 9, 2024

Change was in: christianalfoni/formsy-react@7481b6d

See christianalfoni/formsy-react#267

from formsy-react-components.

sveip avatar sveip commented on June 9, 2024

Thanks, you are absolutely right. I changed my app to use reset(values) to set the input fields instead, so that I don't have to rely on form.inputs anymore.

So now everything seems to work perfectly without any dep warnings 👍

from formsy-react-components.

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.