Giter Site home page Giter Site logo

Comments (3)

cliedeman avatar cliedeman commented on August 16, 2024 1

I have given this some thought over time and don't think it should be a default. Especially because you will get a lot of extra padding for every form by default.

With helperText reserved
screenshot 2019-02-26 at 20 34 50

Without
screenshot 2019-02-26 at 20 35 02

I thought about opening this on the material-ui repo but I think the response will be the same.

For anyone else finding this issue you can do this in userland with something like

import MuiTextField from '@material-ui/core/TextField';
import {fieldToTextField, TextField, TextFieldProps} from 'formik-material-ui';

const HelperTextReserveTextField = (props: TextFieldProps) => (
  <MuiTextField
    {...fieldToTextField({
      ...props,
      helperText: props.helperText ? props.helperText: ' '
    })}
  />
);

from formik-mui.

lippyDesign avatar lippyDesign commented on August 16, 2024 1

looks like helperText is gone from new version and it's not documented. Where did it go?

from formik-mui.

Jsalaz1989 avatar Jsalaz1989 commented on August 16, 2024

This doesn't seem to be getting much attention, but yeah, I've wondered about this too. That shifting around of the fields and the form getting longer and shorter isn't great so ideally they would add that small fix you linked to. In the meantime, I'm sure a bunch of people have thought of adding the helperText=' ' prop to the <Field>, but I thought I'd put it out there.

from formik-mui.

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.