Code Monkey home page Code Monkey logo

Comments (4)

deepan-itela avatar deepan-itela commented on May 23, 2024

I have the same issue.

from react-jsonschema-form-conditionals.

mavarazy avatar mavarazy commented on May 23, 2024

@Steffan-Ennis @deepan-itela Are you on the latest version?

https://github.com/RxNT/react-jsonschema-form-conditionals/blob/61b08b8c4de59789259192b97115d047b12bed88/src/rulesRunner.js#L44-L46

There is a check in rulesRunner, that ignores undefined and null formData.
I'll add this anyway, just curious, how to reproduce this

from react-jsonschema-form-conditionals.

deepan-itela avatar deepan-itela commented on May 23, 2024

I am using version 0.0.3. I think it will be helpful to you if I explain the exact issue. I want to show the password field only after the user enter something to username field. I have defined a remove rule if username is empty. But when the form renders it shows both username and password fields, if I type something in the username field and then clear it, the password field disappears. But it's not happening initially when the form is fresh (not dirty). When the form initially loads also the username field is empty, so theoretically it should hide the password field. But it only happens after I type something for username and erase it completely.

Note: I am not passing formData to the form.

from react-jsonschema-form-conditionals.

mavarazy avatar mavarazy commented on May 23, 2024

@deepan-itela Can you switch to the latest version of conditional project, to verify this is still happening?

from react-jsonschema-form-conditionals.

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.