Giter Club home page Giter Club logo

Comments (5)

simpixelated avatar simpixelated commented on July 19, 2024 1

I actually think this is an issue in formsy-react. See christianalfoni/formsy-react#241

Basically getErrorMessage returns null for required. If it returned the validationError, this library would work fine. Looks like there's some workarounds on that link, so will continue to dig into it.

from formsy-material-ui.

quangdng avatar quangdng commented on July 19, 2024

Is there any progress on this? This bug is pretty annoying.

from formsy-material-ui.

mbrookes avatar mbrookes commented on July 19, 2024

@quangdng - can you remind me how this manifests? It's a long time since I've looked at it - I should have been more verbose in the issue description!

from formsy-material-ui.

simpixelated avatar simpixelated commented on July 19, 2024

@mbrookes see #28:

Apparently, setting the required attribute on a FormsyText reports the form state as invalid (the submit button can be disabled), but no message appears below the field? Is it the expected behavior? Shouldn't we do something with the showRequired function?

After some testing with [email protected], [email protected], and [email protected], I see that FormsyText doesn't display validationError unless there is a value in the field, which means required and even validations="isExisty" don't display an error on the field.

example:

<FormsyText
  name="first"
  floatingLabelText="First name"
  fullWidth={true}
  validations="isExisty"
  validationError="First name is required"
  required
/>

The validationError never displays, even after invalid submit.

from formsy-material-ui.

ryanblakeley avatar ryanblakeley commented on July 19, 2024

Closed by #105

from formsy-material-ui.

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.